Message ID | 20220308065527.90341-1-fufuyqqqqqq@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] scsi: fcoe: fix memory leak | expand |
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 44ca6110213c..dbc202f2f05a 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -829,6 +829,7 @@ static void fcoe_fdmi_info(struct fc_lport *lport, struct net_device *netdev) if (rc) { printk(KERN_INFO "fcoe: Failed to retrieve FDMI " "information from netdev.\n"); + kfree(fdmi); return; }