diff options
author | Ned Bass <[email protected]> | 2010-10-29 12:13:52 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-10-29 14:46:33 -0700 |
commit | b1c58213751141f28793e723017d4064893d819a (patch) | |
tree | cf9271ebc4e503930915ec22aef373b370d86a60 /module/zfs/spa.c | |
parent | 6ee71f5ce39885969f986f3092fed00f41667963 (diff) |
Fix panic mounting unformatted zvol
On some older kernels, i.e. 2.6.18, zvol_ioctl_by_inode() may get passed a NULL
file pointer if the user tries to mount a zvol without a filesystem on it.
This change adds checks to prevent a null pointer dereference.
Closes #73.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/spa.c')
0 files changed, 0 insertions, 0 deletions