Repository navigation
Commit a5c82bd
firewire: net: fix use after free
commit 8987583 upstream.
Commit 8408dc1 "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>1 parent aa02c63 commit a5c82bd
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
929 | 929 | | |
930 | 930 | | |
931 | 931 | | |
932 | | - | |
933 | | - | |
934 | 932 | | |
935 | 933 | | |
936 | 934 | | |
937 | 935 | | |
938 | 936 | | |
939 | 937 | | |
940 | 938 | | |
941 | | - | |
| 939 | + | |
942 | 940 | | |
| 941 | + | |
| 942 | + | |
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
| |||
0 commit comments