]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: propagate get_coalesce return value
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 23 May 2020 15:40:25 +0000 (17:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 May 2020 23:57:00 +0000 (16:57 -0700)
commit052de5572d55a567eee5f2b800b0acbc253f9bd5
treeb6039ce7e2bd1dd3d66e31f73641ef96221e8ce7
parent62944f97444d1f4ff8ff348bf77efc75e28e5b4c
ethtool: propagate get_coalesce return value

get_coalesce returns 0 or ERRNO, but the return value isn't checked.
The returned coalesce data may be invalid if an ERRNO is set,
therefore better check and propagate the return value.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/ioctl.c