From: Steve Wise Date: Wed, 7 Oct 2009 22:51:07 +0000 (-0700) Subject: RDMA/cxgb3: Handle NULL inetdev pointer in iwch_query_port() X-Git-Tag: v2.6.32-rc4~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5da4ed8a486113a4b0e587a0c7843e4a9c08aac;p=pandora-kernel.git RDMA/cxgb3: Handle NULL inetdev pointer in iwch_query_port() in_dev_get() can return NULL. If it does, iwch_query_port() will crash. Handle the NULL case by mapping it to port state INIT. Signed-off-by: Steve Wise Signed-off-by: Roland Dreier --- Reading git-diff-tree failed