Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d33619db authored by Will McVicker's avatar Will McVicker Committed by Pranav Vashi
Browse files

ANDROID: extcon: fix allocation for edev->bnh



Since the device_register() call was moved later in the function by the
upstream commit 6e721f3a ("extcon: Modify extcon device to be
created after driver data is set"), we need to update the edev->bnh
allocation from devm_kzalloc -> kzalloc. Also, add the kfree for this
allocation accordingly.

Fixes: 6e721f3a ("extcon: Modify extcon device to be created after driver data is set")
Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
Change-Id: Ie997bbe31c84c7acc779043d7f91cfa798082c9f
Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
parent 77109149
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment