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: NStefan Schmidt <stefan@osg.samsung.com> Acked-by: NXue Liu <liuxuenetmail@gmail.com>
Showing
想要评论请 注册 或 登录