diff options
author | Victor(Weiguo) Pan <wpan@nvidia.com> | 2011-08-23 14:48:30 -0700 |
---|---|---|
committer | Ryan Wong <ryanw@nvidia.com> | 2011-08-24 17:14:38 -0700 |
commit | 76d0a832b0fb8c5c6446f9c86ccc743701ff704e (patch) | |
tree | 83a4453f742ef9beace749f84961532a93009347 /kernel/gcov/gcov.h | |
parent | e7e8f99ba91b49d67884ee912748ce8200c22784 (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
Change-Id: Idbcd400a7c93576930651a0cf95e6928e1f8db3a
Reviewed-on: http://git-master/r/48788
Reviewed-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Tested-by: Bhushan Rayrikar <brayrikar@nvidia.com>
Reviewed-by: Ryan Wong <ryanw@nvidia.com>
Tested-by: Ryan Wong <ryanw@nvidia.com>
Diffstat (limited to 'kernel/gcov/gcov.h')
0 files changed, 0 insertions, 0 deletions