]> git.baikalelectronics.ru Git - kernel.git/commit
extcon: palmas: Fix NULL pointer error
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 11 Jun 2015 11:19:25 +0000 (20:19 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 29 Jul 2015 08:55:53 +0000 (17:55 +0900)
commit78cab0b9691aec8d86a23a32a184c08675d7e124
tree972a3b209043dce6c5235ee472c2384468ba5e76
parented5bcb8aebc0174d7396d6222e17a9773f9bdb9a
extcon: palmas: Fix NULL pointer error

This patch fixes NULL pointer error by removing the unneeded kfree() call
of edev->name because extcon-palmas no longer allocate the memory for edev->name.

Fixes: 5513836bf111 ("extcon: Remove the optional name of extcon device")
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
drivers/extcon/extcon-palmas.c