mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 03:50:24 +09:00
commit8987583366upstream. Commit8408dc1c14"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: Kamal Mostafa <kamal@canonical.com>