diff options
author | Victor(Weiguo) Pan <wpan@nvidia.com> | 2011-08-23 14:48:30 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:33 -0800 |
commit | 5ab7078a5e3ff5da9f59e3de740f47c9f089aebd (patch) | |
tree | a417171b0c34202982f91308d5cf6f021a54da46 /drivers/hwmon | |
parent | 2dca6ddaa54a7ca474196c9bca8605958f36c4a6 (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
Original-Change-Id: Ic8d779352d3daeaf3d3ef92e7c5feb82e55b47cd
Reviewed-on: http://git-master/r/48775
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R539a531fb1fef5918a136dcaff88bab6a487f51a
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions