aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorKleber Sacilotto de Souza <[email protected]>2012-08-10 18:25:34 +0000
committerRoland Dreier <[email protected]>2012-08-16 16:38:19 +0000
commita0675a386a3a68f71e831bd064082e6717b45fdc (patch)
treea57632edea051c706e3efedfdfafb0ebf580cf00 /arch/powerpc/lib/code-patching.c
parentmlx4_core: Clean up buddy bitmap allocation (diff)
downloadkernel-a0675a386a3a68f71e831bd064082e6717b45fdc.tar.gz
kernel-a0675a386a3a68f71e831bd064082e6717b45fdc.zip
IB/mlx4: Check iboe netdev pointer before dereferencing it
Unlike other parts of the mlx4_ib code, the function build_mlx_header() doesn't check if the iboe netdev of the given port is valid before dereferencing it, which can cause a crash if the ethernet interface has already been taken down. Fix this by checking for a valid netdev pointer before using it to get the port MAC address. Signed-off-by: Kleber Sacilotto de Souza <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions