Skip to content

Commit

Permalink
fix kernel null dereference when accessing a fat16/fat32 disk
Browse files Browse the repository at this point in the history
  • Loading branch information
lqs committed Aug 12, 2013
1 parent 6d3631a commit 3c125fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exfat_nls.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ UINT16 nls_upper(struct super_block *sb, UINT16 a)

if (EXFAT_SB(sb)->options.casesensitive)
return(a);
if ((p_fs->vol_utbl)[get_col_index(a)] != NULL)
if (p_fs->vol_utbl != NULL && (p_fs->vol_utbl)[get_col_index(a)] != NULL)
return (p_fs->vol_utbl)[get_col_index(a)][get_row_index(a)];
else
return a;
Expand Down

0 comments on commit 3c125fd

Please sign in to comment.