]> git.dujemihanovic.xyz Git - u-boot.git/commit
eth/r8152: free previous memory if r8152_eth_probe fail
authorHayes Wang <hayeswang@realtek.com>
Wed, 16 Dec 2020 09:03:22 +0000 (17:03 +0800)
committerMarek Vasut <marex@denx.de>
Wed, 16 Dec 2020 09:27:09 +0000 (10:27 +0100)
commit17d5a461a0da967c511032a160278b0e1d9fd349
tree356ad791cd1970874ec7a740b9d49372c2289d64
parent621ed49d3a2ea3c45be1cf774bef48439bd566f3
eth/r8152: free previous memory if r8152_eth_probe fail

The r8152_eth_probe() may allocate a memory for ss->dev_priv.
It has to be freed if r8152_eth_probe() fails finally.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
drivers/usb/eth/r8152.c