mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[PATCH] proc: inode number fixlet
Ouch, if number taken from IDA is too big, the intent was to signal an error, not check for overflow and still do overflowing addition. One still needs 2^28 proc entries to notice this. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6450f65168
commit
cc99609917
1 changed files with 1 additions and 0 deletions
|
@ -330,6 +330,7 @@ retry:
|
|||
spin_lock(&proc_inum_lock);
|
||||
ida_remove(&proc_inum_ida, i);
|
||||
spin_unlock(&proc_inum_lock);
|
||||
return 0;
|
||||
}
|
||||
return PROC_DYNAMIC_FIRST + i;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue