Skip to content
Commit 34860089 authored by David Lamparter's avatar David Lamparter Committed by Grant Likely
Browse files

spi: free children in spi_unregister_master, not siblings

introduced by 49dce689 ("spi doesn't need class_device") and bad-fixed
by 350d0076

 ("spi: fix double-free on spi_unregister_master"),
spi_unregister_master would previously device_unregister all of the spi
master's siblings (instead of its children). hilarity ensues.

fix it to unregister children.

Signed-off-by: default avatarDavid Lamparter <equinox@diac24.net>
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 4e4438b8
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