commit | 47a39f6105d360abc8409f31fc36fac3c0925a52 | [log] [tgz] |
---|---|---|
author | Jacob Keller <jacob.e.keller@intel.com> | Thu Mar 26 11:37:12 2020 -0700 |
committer | David S. Miller <davem@davemloft.net> | Thu Mar 26 19:39:26 2020 -0700 |
tree | fb9bc73078eff033baa35dca99c8531eb7253d3c | |
parent | cf80faee79f98c0608a86e9006af57a99ffad650 [diff] |
devlink: use -ENOSPC to indicate no more room for snapshots The devlink_region_snapshot_create function returns -ENOMEM when the maximum number of snapshots has been reached. This is confusing because it is not an issue of being out of memory. Change this to use -ENOSPC instead. Reported-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>