From: Dan Carpenter Date: Fri, 31 Oct 2014 09:14:39 +0000 (+0300) Subject: HID: logitech-hidpp: leaks and NULL dereferences X-Git-Tag: omap-for-v3.19/fixes-rc1~112^2^5~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e7830ceb94cd06c05832a0d53cf324db3792418;p=pandora-kernel.git HID: logitech-hidpp: leaks and NULL dereferences Shift the allocation down a few lines to avoid a memory leak and also add a check for allocation failure. Fixes: 2f31c5252910 ('HID: Introduce hidpp, a module to handle Logitech hid++ devices') Signed-off-by: Dan Carpenter Reviewed-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed