diff options
author | Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com> | 2012-08-10 14:25:34 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-08-16 12:38:19 -0400 |
commit | a0675a386a3a68f71e831bd064082e6717b45fdc (patch) | |
tree | a57632edea051c706e3efedfdfafb0ebf580cf00 /drivers/gpu/drm/i915/i915_irq.c | |
parent | 96f17d590092ae2511adf599a252e8ed1901b7a4 (diff) |
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 <klebers@linux.vnet.ibm.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_irq.c')
0 files changed, 0 insertions, 0 deletions