diff options
author | Tyler Hicks <[email protected]> | 2009-03-20 02:23:57 -0500 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-03-22 11:20:43 -0700 |
commit | 2aac0cf88681bfa092f731553bc7fbd23516be73 (patch) | |
tree | b723cbe9c67b0cafa9081690d03b4ecec038d9f6 /drivers/rtc/rtc-at91sam9.c | |
parent | 8faece5f906725c10e7a1f6caf84452abadbdc7b (diff) |
eCryptfs: NULL crypt_stat dereference during lookup
If ecryptfs_encrypted_view or ecryptfs_xattr_metadata were being
specified as mount options, a NULL pointer dereference of crypt_stat
was possible during lookup.
This patch moves the crypt_stat assignment into
ecryptfs_lookup_and_interpose_lower(), ensuring that crypt_stat
will not be NULL before we attempt to dereference it.
Thanks to Dan Carpenter and his static analysis tool, smatch, for
finding this bug.
Signed-off-by: Tyler Hicks <[email protected]>
Acked-by: Dustin Kirkland <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: Serge Hallyn <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/rtc/rtc-at91sam9.c')
0 files changed, 0 insertions, 0 deletions