summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-tmff.c
diff options
context:
space:
mode:
authorAnton Vasilyev <vasilyev@ispras.ru>2018-08-01 13:26:51 +0200
committerJiri Kosina <jkosina@suse.cz>2018-08-02 13:27:54 +0200
commit50fa92594a2bc76265f4bb357f9a25dd3bdb2c0a (patch)
treec5a30ab184359bf83808e116c5ef975330e4c0f5 /drivers/hid/hid-tmff.c
parentHID: intel-ish-hid: Prevent loading of driver on Mehlow (diff)
downloadlinux-50fa92594a2bc76265f4bb357f9a25dd3bdb2c0a.tar.xz
linux-50fa92594a2bc76265f4bb357f9a25dd3bdb2c0a.zip
HID: intel_ish-hid: tx_buf memory leak on probe/remove
ish_dev_init() allocates 512*176 bytes memory for tx_buf and stores it at &dev->wr_free_list_head.link list on ish_probe(). But there is no deallocation of this memory in ish_remove() and in ish_probe() error path. So current intel-ish-ipc provides 88 KB memory leak for each probe/release. The patch replaces kzalloc allocation by devm_kzalloc and removes ishtp_device *dev deallocation by kfree. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru> Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-tmff.c')
0 files changed, 0 insertions, 0 deletions