commit | 137e4e1ab7b3145364b01d2a260ca46672765865 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Thu Jun 20 14:27:51 2019 +0100 |
committer | David S. Miller <davem@davemloft.net> | Sat Jun 22 17:08:49 2019 -0700 |
tree | 6c90add341e635693f8af460537639d9025c2e99 | |
parent | 969b15b002628ca4bb7fa4ee9c2e07bc545d0477 [diff] |
hinic: fix dereference of pointer hwdev before it is null checked Currently pointer hwdev is dereferenced when assigning hwif before hwdev is null checked. Fix this by only derefencing hwdev after the null check. Addresses-Coverity: ("Dereference before null check") Fixes: 4fdc51bb4e92 ("hinic: add support for rss parameters with ethtool") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>