]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb3: Handle NULL inetdev pointer in iwch_query_port()
authorSteve Wise <swise@opengridcomputing.com>
Wed, 7 Oct 2009 22:51:07 +0000 (15:51 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 7 Oct 2009 22:51:07 +0000 (15:51 -0700)
commit09803c2571a51b5d082fd8752561dc48940dba32
tree04114a95a06a75bc34274ffeeb0007be487e8027
parent3d1d5e6f216c3fc4e28622d4db781c17b25d72d7
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 <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/cxgb3/iwch_provider.c