]> Git Repo - linux.git/commit
ethtool: check the return value of get_regs_len
authorYunsheng Lin <[email protected]>
Wed, 26 Dec 2018 11:51:46 +0000 (19:51 +0800)
committerDavid S. Miller <[email protected]>
Sat, 29 Dec 2018 05:24:56 +0000 (21:24 -0800)
commitf9fc54d313fab2834f44f516459cdc8ac91d797f
treea4fabcce30c4deaf8ea081be2544de3d5245678c
parenta3c9311f62b4943228ae90f769775dd3bcbfa7c0
ethtool: check the return value of get_regs_len

The return type for get_regs_len in struct ethtool_ops is int,
the hns3 driver may return error when failing to get the regs
len by sending cmd to firmware.

Signed-off-by: Yunsheng Lin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/ethtool.c
This page took 0.044928 seconds and 4 git commands to generate.