aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-core.c
diff options
context:
space:
mode:
authorFrank Praznik <frank.praznik@oh.rr.com>2015-05-05 20:47:28 -0400
committerJiri Kosina <jkosina@suse.cz>2015-05-07 10:41:34 +0200
commit131a8a9a56f16d8d237b39a8677ccee44a355392 (patch)
tree999270eca3d62fc6abd3e81100c0e7347e17d76e /drivers/hid/hid-core.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid (diff)
downloadlinux-dev-131a8a9a56f16d8d237b39a8677ccee44a355392.tar.xz
linux-dev-131a8a9a56f16d8d237b39a8677ccee44a355392.zip
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 <frank.praznik@oh.rr.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-core.c')
0 files changed, 0 insertions, 0 deletions