]> 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)
commitd740f9ad76c26785c494544491849cc98be48e69
treeb6039ce7e2bd1dd3d66e31f73641ef96221e8ce7
parent682bdc8c50dc81f2559fe049e6e4d8b9c479cf1a
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