mirror_zfs/module/os/linux
Rob Norris d0ea4c617b linux/zvol_os: don't try to set disk ops if alloc fails
If the kernel fails to allocate the gendisk, zvo_disk will be NULL, and
derefencing it will explode. So don't do that.

Sponsored-by: Klara, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #17396
2025-06-03 16:16:30 -07:00
..
spl Linux 6.2/6.15: del_timer_sync() renamed to timer_delete_sync() 2025-05-27 14:41:45 -07:00
zfs linux/zvol_os: don't try to set disk ops if alloc fails 2025-06-03 16:16:30 -07:00