diff options
-rw-r--r-- | net/core/devlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index 5d6887bf7b04..696660b97f89 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -3793,7 +3793,7 @@ __devlink_region_snapshot_create(struct devlink_region *region, /* check if region can hold one more snapshot */ if (region->cur_snapshots == region->max_snapshots) - return -ENOMEM; + return -ENOSPC; if (devlink_region_snapshot_get_by_id(region, snapshot_id)) return -EEXIST; |