The patch titled udf: possible null pointer dereference while load_partition has been added to the -mm tree. Its filename is udf-possible-null-pointer-dereference-while-load_partition.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: udf: possible null pointer dereference while load_partition From: Dmitriy Monakhov <dmonakhov@xxxxxxxxxx> sb_read may return NULL, let's explicitly check it. Signed-off-by: Dmitriy Monakhov <dmonakhov@xxxxxxxxxx> Cc: Jan Kara <jack@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/udf/super.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN fs/udf/super.c~udf-possible-null-pointer-dereference-while-load_partition fs/udf/super.c --- a/fs/udf/super.c~udf-possible-null-pointer-dereference-while-load_partition +++ a/fs/udf/super.c @@ -1405,6 +1405,8 @@ udf_load_partition(struct super_block *s pos = udf_block_map(UDF_SB_VAT(sb), 0); bh = sb_bread(sb, pos); + if (!bh) + return 1; UDF_SB_TYPEVIRT(sb,i).s_start_offset = le16_to_cpu(((struct virtualAllocationTable20 *)bh->b_data + udf_ext0_offset(UDF_SB_VAT(sb)))->lengthHeader) + udf_ext0_offset(UDF_SB_VAT(sb)); _ Patches currently in -mm which might be from dmonakhov@xxxxxxxxxx are git-libata-all.patch git-netdev-all.patch mpt-fusion-handle-mpt_resume-failure-while-resuming.patch freevxfs-possible-null-pointer-dereference-fix.patch reiserfs-possible-null-pointer-dereference-during-resize.patch irq-add-__must_check-to-request_irq.patch ext3-dirindex-error-pointer-issues.patch floppy-handle-device_create_file-failure-while-init.patch udf-possible-null-pointer-dereference-while-load_partition.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html