summaryrefslogtreecommitdiffstats
path: root/drivers/net/vmxnet3/vmxnet3_ethtool.c
diff options
context:
space:
mode:
authorInsu Yun2015-10-15 18:24:09 +0200
committerDavid S. Miller2015-10-16 08:31:38 +0200
commit175f8d6746aa4b1dac5ccf576bcbc5488ff21a36 (patch)
tree69a80424c96f25683797ffdc17cb2e58addaf547 /drivers/net/vmxnet3/vmxnet3_ethtool.c
parentbonding: support encapsulated ipv6 TSO (diff)
downloadkernel-qcow2-linux-175f8d6746aa4b1dac5ccf576bcbc5488ff21a36.tar.gz
kernel-qcow2-linux-175f8d6746aa4b1dac5ccf576bcbc5488ff21a36.tar.xz
kernel-qcow2-linux-175f8d6746aa4b1dac5ccf576bcbc5488ff21a36.zip
mlx4: corretly check failed allocation
When allocation fails, mlx4_alloc_cmd_mailbox returns -ENOMEM. Since there is no case that mlx4_alloc_cmd_mailbox returns NULL, it needs to be checked by IS_ERR, not IS_ERR_OR_NULL Signed-off-by: Insu Yun <wuninsu@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3/vmxnet3_ethtool.c')
0 files changed, 0 insertions, 0 deletions