]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: ieee802154: mcr20a: do not leak resources on error path
authorStefan Schmidt <stefan@osg.samsung.com>
Thu, 12 Apr 2018 12:28:49 +0000 (14:28 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Mon, 23 Apr 2018 18:56:23 +0000 (20:56 +0200)
commit7e0ffee1b2e7d26cc2147be0d9d5186823e923f3
tree67b80ad93acea2f525353b6e7fa0945a5e98950f
parentf9e628a6645ed4f42a15dfa3c5af45a916a228e4
net: ieee802154: mcr20a: do not leak resources on error path

We already allocated the device and platform  data at this
point. Instead of simply return from the probe function we
need to cleanup the resources first.

Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
Acked-by: Xue Liu <liuxuenetmail@gmail.com>
drivers/net/ieee802154/mcr20a.c