From: Frank Praznik Date: Wed, 6 May 2015 00:47:28 +0000 (-0400) Subject: HID: sony: Prevent the freeing of an unitialized ida value X-Git-Tag: omap-for-v4.2/fixes-rc1^2~157^2^8~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=131a8a9a56f16d8d237b39a8677ccee44a355392;p=pandora-kernel.git HID: sony: Prevent the freeing of an unitialized ida value sony_allocate_output_report() was being called before sony_set_device_id() which meant that an unallocated ida value was was freed if the output report allocation failed and the probe function jumped to err_stop. Do the device ID allocation before the output report allocation to avoid freeing an unallocated value in case of a failure. Signed-off-by: Frank Praznik Acked-by: Pavel Machek Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed