projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
scsi: fcoe: fix use-after-free in fcoe_ctlr_els_send
[linux-2.6-block.git]
/
drivers
/
scsi
/
fcoe
/
fcoe_ctlr.c
diff --git
a/drivers/scsi/fcoe/fcoe_ctlr.c
b/drivers/scsi/fcoe/fcoe_ctlr.c
index ea23c8dffc252af3d0209167e99118c98575d848..ceb35ebbeb8f14683ce5429be74bced3baec6083 100644
(file)
--- a/
drivers/scsi/fcoe/fcoe_ctlr.c
+++ b/
drivers/scsi/fcoe/fcoe_ctlr.c
@@
-799,9
+799,9
@@
int fcoe_ctlr_els_send(struct fcoe_ctlr *fip, struct fc_lport *lport,
fip->send(fip, skb);
return -EINPROGRESS;
drop:
- kfree_skb(skb);
LIBFCOE_FIP_DBG(fip, "drop els_send op %u d_id %x\n",
op, ntoh24(fh->fh_d_id));
+ kfree_skb(skb);
return -EINVAL;
}
EXPORT_SYMBOL(fcoe_ctlr_els_send);