USB: ene_ub6250: fix memory leak in ene_load_bincode()
authorDan Carpenter <error27@gmail.com>
Thu, 10 Mar 2011 08:31:33 +0000 (11:31 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Mar 2011 22:26:08 +0000 (14:26 -0800)
commit8b0fb6f872477dfd218e43b073543e4913b6d785
tree2d26bb8b6bb6b9d71bc877cf03247fbfa834f854
parente0cc8a60c4f9352c8281af6eb49f13cf5a7bb476
USB: ene_ub6250: fix memory leak in ene_load_bincode()

"buf" gets allocated twice in a row.  It's the second allocation which
is correct.  The first one should be removed.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: huajun li <huajun.li.lee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/ene_ub6250.c