diff options
author | J. R. Okajima <hooanon05@yahoo.co.jp> | 2009-12-02 08:55:49 +0100 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-12-06 09:23:05 +0100 |
commit | f3d8b53a3abbfd0b74fa5dfaa690870d9619fad9 (patch) | |
tree | 0077e9af30a2fadf6d02da5420c9d979f80a3ee5 /Documentation/firmware_class | |
parent | Linux 2.6.32-rc8 (diff) | |
download | linux-f3d8b53a3abbfd0b74fa5dfaa690870d9619fad9.tar.xz linux-f3d8b53a3abbfd0b74fa5dfaa690870d9619fad9.zip |
slab, kmemleak: stop calling kmemleak_erase() unconditionally
When the gotten object is NULL (probably due to ENOMEM), kmemleak_erase() is
unnecessary here, It just sets NULL to where already is NULL. Add a condition.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: J. R. Okajima <hooanon05@yahoo.co.jp>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'Documentation/firmware_class')
0 files changed, 0 insertions, 0 deletions