Files
linux-stable-mirror/fs
Viacheslav DubeykoandGreg Kroah-Hartman 3ce9a0ed47 ceph: add checking of wait_for_completion_killable() return value
[ Upstream commit b7ed1e29cf ]

The Coverity Scan service has detected the calling of
wait_for_completion_killable() without checking the return
value in ceph_lock_wait_for_completion() [1]. The CID 1636232
defect contains explanation: "If the function returns an error
value, the error value may be mistaken for a normal value.
In ceph_lock_wait_for_completion(): Value returned from
a function is not checked for errors before being used. (CWE-252)".

The patch adds the checking of wait_for_completion_killable()
return value and return the error code from
ceph_lock_wait_for_completion().

[1] https://scan5.scan.coverity.com/#/project-view/64304/10063?selectedIssue=1636232

Signed-off-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Reviewed-by: Alex Markuze <amarkuze@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-12-07 06:12:28 +09:00
..
2025-08-15 12:04:51 +02:00
2025-12-07 06:12:26 +09:00
2025-10-02 13:40:41 +02:00
2024-10-22 15:56:43 +02:00
2025-02-21 13:48:53 +01:00
2025-10-02 13:40:41 +02:00
2025-03-28 21:58:51 +01:00
2025-10-29 14:04:35 +01:00