Files
linux/mm
Darrick J. Wong 2787a201db tmpfs: fix uninitialized return value in shmem_link
[ Upstream commit 29b00e6099 ]

When we made the shmem_reserve_inode call in shmem_link conditional, we
forgot to update the declaration for ret so that it always has a known
value.  Dan Carpenter pointed out this deficiency in the original patch.

Fixes: 1062af920c ("tmpfs: fix link accounting when a tmpfile is linked in")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Matej Kupljen <matej.kupljen@gmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-15 12:05:41 +09:00
..
2018-04-24 11:26:46 +02:00
2023-05-15 12:05:20 +09:00
2023-05-15 11:34:46 +09:00
2015-09-08 15:35:28 -07:00
2017-06-07 12:37:47 +02:00
2016-03-17 15:09:34 -07:00
2018-04-17 17:58:08 -08:00
2015-11-05 19:34:48 -08:00
2017-08-24 17:12:19 -07:00
2016-03-17 15:09:34 -07:00
2023-05-15 08:29:33 +09:00
2018-04-17 17:58:08 -08:00
2023-05-15 09:01:33 +09:00