From: Kleber Sacilotto de Souza Date: Fri, 10 Aug 2012 18:25:34 +0000 (+0000) Subject: IB/mlx4: Check iboe netdev pointer before dereferencing it X-Git-Tag: v3.6-rc3~36^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0675a386a3a68f71e831bd064082e6717b45fdc;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed