From: Sven Wegener Date: Wed, 20 Aug 2008 21:09:07 +0000 (-0700) Subject: nbd: fix memory leak of nbd_dev array X-Git-Tag: v2.6.27-rc4~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3944d61ddc65722539ffd7b6f5b7c7217c136cc;p=pandora-kernel.git nbd: fix memory leak of nbd_dev array We leak the memory allocated for the nbd_dev array at multiple places. Fix them by either adding a kfree() or by rearranging code to return before we allocate the memory. Signed-off-by: Sven Wegener Cc: Paul Clements Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed