We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0268d45 commit 432dc06Copy full SHA for 432dc06
kernel/ucount.c
@@ -317,7 +317,7 @@ long inc_rlimit_get_ucounts(struct ucounts *ucounts, enum rlimit_type type)
317
for (iter = ucounts; iter; iter = iter->ns->ucounts) {
318
long new = atomic_long_add_return(1, &iter->rlimit[type]);
319
if (new < 0 || new > max)
320
- goto unwind;
+ goto dec_unwind;
321
if (iter == ucounts)
322
ret = new;
323
max = get_userns_rlimit_max(iter->ns, type);
@@ -334,7 +334,6 @@ long inc_rlimit_get_ucounts(struct ucounts *ucounts, enum rlimit_type type)
334
dec_unwind:
335
dec = atomic_long_sub_return(1, &iter->rlimit[type]);
336
WARN_ON_ONCE(dec < 0);
337
-unwind:
338
do_dec_rlimit_put_ucounts(ucounts, iter, type);
339
return 0;
340
}
0 commit comments