From: Rusty Russell Date: Fri, 25 Sep 2009 06:32:58 +0000 (-0600) Subject: module: fix memory leak when load fails after srcversion/version allocated X-Git-Tag: v2.6.32-rc1~56^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a263f7763c364015f92e7c097fa46c6673f6fcb0;p=pandora-kernel.git module: fix memory leak when load fails after srcversion/version allocated Normally the twisty paths of sysfs will free the attributes, but not if we fail before we hook it into sysfs (which is the last thing we do in load_module). (This sysfs code is a turd, no doubt there are other issues lurking too). Reported-by: Tetsuo Handa Signed-off-by: Rusty Russell Cc: Catalin Marinas Tested-by: Tetsuo Handa --- Reading git-diff-tree failed