Files
linux/fs/proc
Su Hui ad0039db42 fs/proc/vmcore: a few cleanups for vmcore_add_device_dump()
There are two cleanups for vmcore_add_device_dump().  Return -ENOMEM
directly rather than goto the label to simplify the code and use
scoped_guard() to simplify the lock/unlock code.

Link: https://lkml.kernel.org/r/20250626105440.1053139-1-suhui@nfschina.com
Signed-off-by: Su Hui <suhui@nfschina.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Suhui <suhui@nfschina.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-07-09 22:57:56 -07:00
..
2022-10-03 14:21:45 -07:00
2023-01-19 09:24:28 +01:00
2025-03-16 17:40:22 -07:00
2025-02-10 16:56:58 -08:00
2022-10-03 14:21:45 -07:00
2025-05-05 13:22:39 -06:00
2024-10-16 21:56:59 +02:00
2022-10-03 14:21:45 -07:00
2022-10-03 14:21:45 -07:00