diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-05-13 10:28:22 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-14 17:36:25 -0700 |
commit | 5a46b062e28f57bffde767437fad3ab1d0cee2c7 (patch) | |
tree | e8d48306ad9c6b0b870b0bfde28c847f44cae1ce /drivers/net | |
parent | c7ad365761857ddc91c891ef7557d90f2510353e (diff) | |
download | linux-5a46b062e28f57bffde767437fad3ab1d0cee2c7.tar.bz2 |
devlink: refactor end checks in devlink_nl_cmd_region_read_dumpit
Clean up after recent fixes, move address calculations
around and change the variable init, so that we can have
just one start_offset == end_offset check.
Make the check a little stricter to preserve the -EINVAL
error if requested start offset is larger than the region
itself.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions