summaryrefslogtreecommitdiff
path: root/sound/x86/intel_hdmi_lpe_audio.h
diff options
context:
space:
mode:
authorEiichi Tsukata <devel@etsukata.com>2020-08-07 11:55:20 -0700
committerDarrick J. Wong <darrick.wong@oracle.com>2020-08-16 14:54:02 -0700
commit97651b6296fbc3e44efdc9d3146bcac56658be53 (patch)
tree081ae3d65a9d254248fc0e410711cca11f9b301a /sound/x86/intel_hdmi_lpe_audio.h
parent05687e2f0f685fd639841b87add07b6b2f4c7c2c (diff)
xfs: Fix UBSAN null-ptr-deref in xfs_sysfs_initxfs-5.9-merge_2020-08-16
If xfs_sysfs_init is called with parent_kobj == NULL, UBSAN shows the following warning: UBSAN: null-ptr-deref in ./fs/xfs/xfs_sysfs.h:37:23 member access within null pointer of type 'struct xfs_kobj' Call Trace: dump_stack+0x10e/0x195 ubsan_type_mismatch_common+0x241/0x280 __ubsan_handle_type_mismatch_v1+0x32/0x40 init_xfs_fs+0x12b/0x28f do_one_initcall+0xdd/0x1d0 do_initcall_level+0x151/0x1b6 do_initcalls+0x50/0x8f do_basic_setup+0x29/0x2b kernel_init_freeable+0x19f/0x20b kernel_init+0x11/0x1e0 ret_from_fork+0x22/0x30 Fix it by checking parent_kobj before the code accesses its member. Signed-off-by: Eiichi Tsukata <devel@etsukata.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> [darrick: minor whitespace edits] Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'sound/x86/intel_hdmi_lpe_audio.h')
0 files changed, 0 insertions, 0 deletions