B Horn d1d6b7ea58 fs/xfs: Ensuring failing to mount sets a grub_errno
It was previously possible for grub_xfs_mount() to return NULL without
setting grub_errno if the XFS version was invalid. This resulted in it
being possible for grub_dl_unref() to be called twice allowing the XFS
module to be unloaded while there were still references to it.

Fixing this problem in general by ensuring a grub_errno is set if the
fail label is reached.

Reported-by: B Horn <b@horn.uk>
Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2025-01-23 16:22:47 +01:00
..
2011-10-30 16:10:18 +01:00
2022-03-14 15:45:30 +01:00
2011-04-11 18:13:00 +02:00
2022-07-27 19:20:53 +02:00
2022-03-14 15:45:30 +01:00
2025-01-23 16:22:46 +01:00
2011-04-11 08:16:13 +02:00
2022-03-14 15:45:30 +01:00
2019-04-09 10:03:29 +10:00
2022-03-14 15:45:30 +01:00
2022-03-14 15:45:30 +01:00
2023-06-13 14:48:38 +02:00
2010-05-06 11:34:04 +05:30
2012-12-08 20:56:58 +01:00
2024-12-02 17:32:51 +01:00