aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/altera-fpga2sdram.c
diff options
context:
space:
mode:
authorDongliang Mu <mudongliangabcd@gmail.com>2022-01-22 17:48:26 +0800
committerJiri Kosina <jkosina@suse.cz>2022-01-24 09:03:21 +0100
commit817b8b9c5396d2b2d92311b46719aad5d3339dbe (patch)
tree7ef55414bc457869230f3304dd049eacb0133ad1 /drivers/fpga/altera-fpga2sdram.c
parente26a78057c25dd56f112d536319c38735ed92ba4 (diff)
HID: elo: fix memory leak in elo_probe
When hid_parse() in elo_probe() fails, it forgets to call usb_put_dev to decrease the refcount. Fix this by adding usb_put_dev() in the error handling code of elo_probe(). Fixes: fbf42729d0e9 ("HID: elo: update the reference count of the usb device structure") Reported-by: syzkaller <syzkaller@googlegroups.com> Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions