Bug 219932 - Missing null check in uio_fsl_elbc_gpcm_probe
Summary: Missing null check in uio_fsl_elbc_gpcm_probe
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P3 normal
Assignee: drivers_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-28 07:42 UTC by henry
Modified: 2025-03-28 08:24 UTC (History)
0 users

See Also:
Kernel Version:
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description henry 2025-03-28 07:42:11 UTC
uio: uio_fsl_elbc_gpcm: Add NULL check in uio_fsl_elbc_gpcm_probe

devm_kasprintf() can return a NULL pointer on failure,but this info->mem[0].name
returned value in uio_fsl_elbc_gpcm_probe is not checked.
Add NULL check in uio_fsl_elbc_gpcm_probe, to handle kernel NULL
pointer dereference error.

Note You need to log in before you can comment on or make changes to this bug.