android_kernel_google_msm/drivers/isdn
Tilman Schmidt 325c0423cb ser_gigaset: fix deallocation of platform device structure
commit 4c5e354a974214dfb44cd23fa0429327693bc3ea upstream.

When shutting down the device, the struct ser_cardstate must not be
kfree()d immediately after the call to platform_device_unregister()
since the embedded struct platform_device is still in use.
Move the kfree() call to the release method instead.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Fixes: 2869b23e4b ("drivers/isdn/gigaset: new M101 driver (v2)")
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-10-26 23:15:38 +08:00
..
act2000 isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
capi Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2012-03-20 21:04:47 -07:00
divert isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
gigaset ser_gigaset: fix deallocation of platform device structure 2016-10-26 23:15:38 +08:00
hardware mISDN: fix a loop count 2016-10-26 23:15:38 +08:00
hisax Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
hysdn isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
i4l ppp, slip: Validate VJ compression slot parameters completely 2016-03-21 09:17:54 +08:00
icn isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
isdnloop isdnloop: several buffer overflows 2014-04-26 17:13:18 -07:00
mISDN net: rework recvmsg handler msg_name and msg_namelen logic 2013-12-08 07:29:41 -08:00
pcbit Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
sc isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
Kconfig um: switch to use of drivers/Kconfig 2011-11-02 14:15:41 +01:00
Makefile