summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-06-11 20:38:23 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-10 01:25:22 +0200
commitddd94257410fa6be955af4592d8727e3b4ba51ef (patch)
treeee3c8847938902ec7cea101d9248edf6ffe11001 /drivers/usb/serial
parentUSB: EHCI: tegra: Fix use-after-free in .remove() (diff)
downloadlinux-ddd94257410fa6be955af4592d8727e3b4ba51ef.tar.xz
linux-ddd94257410fa6be955af4592d8727e3b4ba51ef.zip
usb: host: uhci-grlib.c : use devm_ functions
The various devm_ functions allocate memory that is released when a driver detaches. This patch uses devm_ioremap_resource for data that is allocated in the probe function of a platform device and is only freed in the remove function. The corresponding free functions are removed and two labels are done away with. Also, linux/device.h is added to make sure the devm_*() routine declarations are unambiguously available. Signed-off-by: Himangi Saraogi <himangi774@gmail.com> Acked-by: Andreas Larsson <andreas@gaisler.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
0 files changed, 0 insertions, 0 deletions