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

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


Attachments

Description henry 2025-03-28 07:33:37 UTC
vedio: backlight: Add NULL check in wled_configure
    
    devm_kasprintf() can return a NULL pointer on failure,but this wled->name
    returned value in wled_configure is not checked.
    Add NULL check in wled_configure, to handle kernel NULL
    pointer dereference error. This is similar to the commit 050b23d081da.

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