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 | |
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
-rw-r--r-- | arch/arm/mach-tegra/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c index cbf5fa1ff5c3..ca673d1658c2 100644 --- a/arch/arm/mach-tegra/common.c +++ b/arch/arm/mach-tegra/common.c @@ -660,3 +660,4 @@ void __init tegra_release_bootloader_fb(void) tegra_bootloader_fb_size)) pr_err("Failed to free bootloader fb.\n"); } + |