summaryrefslogtreecommitdiff
path: root/fs/reiserfs/inode.c
diff options
context:
space:
mode:
authorArturo Giusti <koredump@protonmail.com>2021-05-18 13:34:57 +0300
committerJan Kara <jack@suse.cz>2021-05-20 13:14:44 +0300
commitfa236c2b2d4436d9f19ee4e5d5924e90ffd7bb43 (patch)
treec6de1817e6a65e09a1d6d5c559929a3bb906c7a7 /fs/reiserfs/inode.c
parenta149127be52fa7eaf5b3681a0317a2bbb772d5a9 (diff)
downloadlinux-fa236c2b2d4436d9f19ee4e5d5924e90ffd7bb43.tar.xz
udf: Fix NULL pointer dereference in udf_symlink function
In function udf_symlink, epos.bh is assigned with the value returned by udf_tgetblk. The function udf_tgetblk is defined in udf/misc.c and returns the value of sb_getblk function that could be NULL. Then, epos.bh is used without any check, causing a possible NULL pointer dereference when sb_getblk fails. This fix adds a check to validate the value of epos.bh. Link: https://bugzilla.kernel.org/show_bug.cgi?id=213083 Signed-off-by: Arturo Giusti <koredump@protonmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/reiserfs/inode.c')
0 files changed, 0 insertions, 0 deletions