signalfd: fix error return code
authorFedor Pchelkin <pchelkin@ispras.ru>
Mon, 20 May 2024 09:08:18 +0000 (12:08 +0300)
committerChristian Brauner <brauner@kernel.org>
Fri, 24 May 2024 11:34:07 +0000 (13:34 +0200)
commitf826bc9d6fc2f0e089fb8d104415d72e4d2e204c
treece577f01f05770ccd7be32538e0a01dd1d025826
parent4e527d5841e24623181edc7fd6f6598ffa810e10
signalfd: fix error return code

If anon_inode_getfile() fails, return appropriate error code. This looks
like a single typo: the similar code changes in timerfd and userfaultfd
are okay.

Found by Linux Verification Center (linuxtesting.org).

Fixes: fbe38120eb1d ("signalfd: convert to ->read_iter()")
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Link: https://lore.kernel.org/r/20240520090819.76342-1-pchelkin@ispras.ru
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/signalfd.c