gator-driver: Handle task struct correctly
authorDrew Richardson <drew.richardson@arm.com>
Tue, 17 Dec 2013 23:40:56 +0000 (23:40 +0000)
committerAlex Shi <alex.shi@linaro.org>
Fri, 3 Jan 2014 06:10:27 +0000 (14:10 +0800)
commitbf78886fb6c4131885f84f3eaaf7474509d40e51
tree1082168f05032e72bc17b618f49cbf3dc77bb478
parent0025d2eacc72dfeac4911caeb111b3c52209b3f5
gator-driver: Handle task struct correctly

Use put_task_struct/get_task_struct to ensure the task_struct pointer
is still valid. Change translate_buffer to ensure that both arguments
are written atomically. Drop additional requests if the
translate_buffer is full.

Signed-off-by: Drew Richardson <drew.richardson@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
drivers/gator/gator_cookies.c
drivers/gator/gator_iks.c