ieee802154: mcr20a: Fix memory leak in mcr20a_probe
commit94912e8df4e5005cb5fa3f3603741eb5e8bf3334
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 5 Apr 2018 16:20:06 +0000 (5 11:20 -0500)
committerStefan Schmidt <stefan@osg.samsung.com>
Mon, 23 Apr 2018 18:56:23 +0000 (23 20:56 +0200)
tree3beceba5aae3e68e41a78379549fa526487e9e76
parentaa8f8778493c85fff480cdf8b349b1e1dcb5f243
ieee802154: mcr20a: Fix memory leak in mcr20a_probe

Free allocated memory for pdata before return.

Addresses-Coverity-ID: 1466096 ("Resource leak")
Fixes: 8c6ad9cc5157 ("ieee802154: Add NXP MCR20A IEEE 802.15.4 transceiver driver")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Xue Liu <liuxuenetmail@gmail.com>
Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
drivers/net/ieee802154/mcr20a.c