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 09:46:16 +0000 (17:46 +0800)
commit0a1e99e83990f72055eadd7ab5793b9f63e16834
tree8050dbd7c329a71e1093e80ae1b3563846ea7863
parent206d7d4b01c2e9e89a58726c0c78b9550041ff24
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