diff options
author | Geoff Levand <geoff@infradead.org> | 2024-02-21 11:27:29 +0900 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-23 11:59:30 +0000 |
commit | b0b1210bc150fbd741b4b9fce8a24541306b40fc (patch) | |
tree | 3e50f91e747af749915542ddbb43a39f06ca8f1c /drivers/net/tun.c | |
parent | 734f06db599f66d6a159c78abfdbadfea3b7d43b (diff) |
ps3/gelic: Fix SKB allocation
Commit 3ce4f9c3fbb3 ("net/ps3_gelic_net: Add gelic_descr structures") of
6.8-rc1 had a copy-and-paste error where the pointer that holds the
allocated SKB (struct gelic_descr.skb) was set to NULL after the SKB was
allocated. This resulted in a kernel panic when the SKB pointer was
accessed.
This fix moves the initialization of the gelic_descr to before the SKB
is allocated.
Reported-by: sambat goson <sombat3960@gmail.com>
Fixes: 3ce4f9c3fbb3 ("net/ps3_gelic_net: Add gelic_descr structures")
Signed-off-by: Geoff Levand <geoff@infradead.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
0 files changed, 0 insertions, 0 deletions