commit | 71b43fd573a60972b2175df4927c4ee10d757004 | [log] [tgz] |
---|---|---|
author | Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> | Thu May 17 17:51:53 2012 -0300 |
committer | Roland Dreier <roland@purestorage.com> | Sun Jun 03 22:59:15 2012 -0700 |
tree | 405a41b627653697587b2286b362d40fad3e55d2 | |
parent | c23ddf7857bdb2e8001b0a058603497c765a580d [diff] |
RDMA/cxgb4: Fix crash when peer address is 0.0.0.0 When using rping -c -a 0.0.0.0 with iw_cxgb4, the system crashes when rdma_connect() is called. ip_dev_find() will return NULL, but pdev is accessed anyway. Checking that pdev is NULL and returning -ENODEV prevents the system from crashing. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com> Acked-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Roland Dreier <roland@purestorage.com>