diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-02-01 12:21:15 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-01 09:50:52 -0500 |
commit | a83165f00f16c0e0ef5b7cec3cbd0d4788699265 (patch) | |
tree | 14abea04ec1c7e69c927273f938c5fb0a5dbb4e9 /drivers/net/netconsole.c | |
parent | 0ba987181028ab41cdc68fa91b74c98d97b93ff3 (diff) | |
download | linux-a83165f00f16c0e0ef5b7cec3cbd0d4788699265.tar.gz linux-a83165f00f16c0e0ef5b7cec3cbd0d4788699265.tar.xz |
rocker: fix possible null pointer dereference in rocker_router_fib_event_work
Currently, rocker user may experience following null pointer
derefence bug:
[ 3.062141] BUG: unable to handle kernel NULL pointer dereference at 00000000000000d0
[ 3.065163] IP: rocker_router_fib_event_work+0x36/0x110 [rocker]
The problem is uninitialized rocker->wops pointer that is initialized
only with the first initialized port. So move the port initialization
before registering the fib events.
Fixes: 936bd486564a ("rocker: use FIB notifications instead of switchdev calls")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netconsole.c')
0 files changed, 0 insertions, 0 deletions