From: Jesper Juhl Date: Sun, 2 Jan 2011 21:17:00 +0000 (+0100) Subject: HID: hid-picolcd: Fix memory leak in picolcd_debug_out_report() X-Git-Tag: v2.6.38-rc1~442^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fbf8ed976af5bb43cf9cf2492161eb9688fee0c;p=pandora-kernel.git HID: hid-picolcd: Fix memory leak in picolcd_debug_out_report() We have a memory leak in drivers/hid/hid-picolcd.c::picolcd_debug_out_report() in an error path.. We are not always freeing the memory allocated to 'buff' - this patch makes sure we always kfree() what we allocate with kmalloc() when it is no longer needed. Signed-off-by: Jesper Juhl Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed