Re: [PATCH net] ethtool: check the return value of get_regs_len

2018-12-28 Thread David Miller
From: Yunsheng Lin Date: Wed, 26 Dec 2018 19:51:46 +0800 > 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 > --- > Note: There is not Fixes tags for t

[PATCH net] ethtool: check the return value of get_regs_len

2018-12-26 Thread Yunsheng Lin
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 --- Note: There is not Fixes tags for this becuase the ops is added before the git is used. --- net/core/ethtoo