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

Skip to content
Commit 926e3eb3 authored by Will McVicker's avatar Will McVicker
Browse files

ANDROID: extcon: fix allocation for edev->bnh



Since the device_register() call was moved later in the function by the
upstream commit cb81ea99 ("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: cb81ea99 ("extcon: Modify extcon device to be created after driver data is set")
Signed-off-by: default avatarWill McVicker <willmcvicker@google.com>
Change-Id: Ie997bbe31c84c7acc779043d7f91cfa798082c9f
parent 9e9f3a4f
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