Skip to content
Commit c63f5da0 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

spi: dw: Don't call kfree for memory allocated by devm_kzalloc



With devm_kzalloc, the memory is automatically freed when spi_device detach from
the bus.

Fixes: commit 43f627ac (spi: dw: fix memory leak on error path)
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Cc: stabe@vger.kernel.org
parent 765ee709
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment