diff options
author | Victor(Weiguo) Pan <wpan@nvidia.com> | 2011-08-23 14:48:30 -0700 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-22 11:32:25 +0530 |
commit | 2dbf0713ce5f4925c1d0021190e065da127f8f73 (patch) | |
tree | d27945282734668c2795f166fdfe5858431940e5 /kernel | |
parent | 91c3b7f8e7032e7d57b71a36e703eb39feb18385 (diff) |
ARM: tegra: correctly access file in kernel
1. Tell the kernel the pointers from within the kernel address
space are safe before accessing the file. Save/restore current
process address before/after the file accessing.
2. Use macro IS_ERR to check file opening is successful or not
because filp_open() returns negtive value once error happens.
bug 865113
bug 917684
Reviewed-on: http://git-master/r/48788
(cherry picked from commit 76d0a832b0fb8c5c6446f9c86ccc743701ff704e)
Change-Id: Ie96152396f93a49babe848041feca354c6dfce50
Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Reviewed-on: http://git-master/r/71152
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions