aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNeil Brown <[email protected]>2008-06-28 08:31:17 +1000
committerNeil Brown <[email protected]>2008-06-28 08:31:17 +1000
commit9bbbca3a0ee09293108b67835c6bdf6196d7bcb3 (patch)
tree32526078700e26c6e67aea5eb141fe152d1da9f7 /net/unix/af_unix.c
parentefe311431869b40d67911820a309f9a1a41306f3 (diff)
Fix error paths if md_probe fails.
md_probe can fail (e.g. alloc_disk could fail) without returning an error (as it alway returns NULL). So when we call mddev_find immediately afterwards, we need to check that md_probe actually succeeded. This means checking that mdev->gendisk is non-NULL. cc: <[email protected]> Cc: Dave Jones <[email protected]> Signed-off-by: Neil Brown <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions