fsl/fman: double free on probe failure
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Jan 2016 09:59:10 +0000 (12:59 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jan 2016 20:28:11 +0000 (15:28 -0500)
commit9e02d8caaf90077bc47e054e4c3a41736245a9f8
treef14660beb0b501c734717dd8bdff3c56fcf43bfa
parente06a03bdf8781d6a93a13d5bdf33d058ca498a86
fsl/fman: double free on probe failure

"priv" is allocated with devm_kzalloc() so freeing it here with kfree()
will lead to a double free.

Fixes: 3933961682a3 ('fsl/fman: Add FMan MAC driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/mac.c