aboutsummaryrefslogtreecommitdiff
path: root/drivers/firewire/core-device.c
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2014-02-18 22:25:15 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-23 21:37:06 -0700
commitf37058b88772ed4de812d1716634649ee1e6480e (patch)
treef18ce74ce734779947cbde687780d2d168583fe8 /drivers/firewire/core-device.c
parenta299804140325db7b93173419b0724056b60f34d (diff)
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/firewire/core-device.c')
0 files changed, 0 insertions, 0 deletions