Skip to content
Commit 0b7d25c3 authored by Christian Engelmayer's avatar Christian Engelmayer Committed by Thierry Reding
Browse files

pwm: lp3943: Fix potential memory leak during request



Fix a memory leak in the lp3943_pwm_request_map() error handling path.
Make sure already allocated pwm map memory is freed correctly.
Detected by Coverity: CID 1162829.

Signed-off-by: default avatarChristian Engelmayer <cengelma@gmx.at>
Acked-by: default avatarMilo Kim <milo.kim@ti.com>
Signed-off-by: default avatarThierry Reding <thierry.reding@gmail.com>
parent 38dbfb59
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment