gator-driver: Handle task struct correctly
authorDrew Richardson <drew.richardson@arm.com>
Tue, 17 Dec 2013 23:40:56 +0000 (23:40 +0000)
committerJon Medhurst <tixy@linaro.org>
Thu, 19 Dec 2013 09:35:29 +0000 (09:35 +0000)
commita4e47900af0ce31d8c2807df94b2e182add8c0c4
treea47fffbb8258bd3de1b3d5a0b03bd7c342a0f898
parent34d9769988397a1edf93ad1966c167591ab29e79
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