diff options
author | Axel Lin | 2010-08-10 02:20:56 +0200 |
---|---|---|
committer | Linus Torvalds | 2010-08-10 05:45:09 +0200 |
commit | 1986aaf828ac8398b3d8d9b4151b08c840414ffe (patch) | |
tree | ce5b6e92bab2e8f706ad2c9e08ac826bc5c215a2 /scripts/checkpatch.pl | |
parent | flex_array: add helpers to get and put to make pointers easy to use (diff) | |
download | kernel-qcow2-linux-1986aaf828ac8398b3d8d9b4151b08c840414ffe.tar.gz kernel-qcow2-linux-1986aaf828ac8398b3d8d9b4151b08c840414ffe.tar.xz kernel-qcow2-linux-1986aaf828ac8398b3d8d9b4151b08c840414ffe.zip |
edd: fix possible memory leak in edd_init() error path
The error may happen at any iteration of the for loop, this patch properly
unregisters already registed edd_devices in error path.
[akpm@linux-foundation.org: remove unneeded NULL test]
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions