mirror_zfs/module/os
Rob Norris 0c94d3838d
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-05-30 10:25:09 -04:00
..
freebsd ZVOL: Make zvol_inhibit_dev module parameter platform-independent 2025-05-29 09:37:41 -04:00
linux linux/zvol_os: don't try to set disk ops if alloc fails 2025-05-30 10:25:09 -04:00