summaryrefslogtreecommitdiff
path: root/drivers/firewire/ohci.c
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2014-02-18 21:25:15 (GMT)
committerJiri Slaby <jslaby@suse.cz>2014-03-22 21:01:56 (GMT)
commit52fa2d887232da81aee604c560db9383a2d1369e (patch)
tree2bca77ceb04b64bb4adc82b5eebb9ecfc157ecd3 /drivers/firewire/ohci.c
parent95a3d2c55f8f15f8219816baf4e4c705ea992bbe (diff)
downloadlinux-fsl-qoriq-52fa2d887232da81aee604c560db9383a2d1369e.tar.xz
firewire: net: fix use after free
commit 8987583366ae9e03c306c2b7d73bdb952df1d08d upstream. Commit 8408dc1c14c1 "firewire: net: use dev_printk API" introduced a use-after-free in a failure path. fwnet_transmit_packet_failed(ptask) may free ptask, then the dev_err() call dereferenced it. The fix is straightforward; simply reorder the two calls. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/firewire/ohci.c')
0 files changed, 0 insertions, 0 deletions