]> git.baikalelectronics.ru Git - kernel.git/commit
bus: arm-ccn: Move event cleanup routine
authorPawel Moll <mail@pawelmoll.com>
Tue, 2 Sep 2014 15:26:11 +0000 (16:26 +0100)
committerKevin Hilman <khilman@linaro.org>
Fri, 5 Sep 2014 20:25:01 +0000 (13:25 -0700)
commit5aedd9d8b9d5da540644b3b8f337dbd489e119a6
tree2f534c04c9f49610add56500ec19ae4f712bd6dc
parent4518345972c897a9c01629bacf234adeade989d9
bus: arm-ccn: Move event cleanup routine

The function cleaning up an initialized event
was called from the "event_del" handler, instead
of being used as the "destroy" callback. In case of
events group allocation this caused NULL pointer
dereference (as events are added and deleted
multiple times then). Fixed now.

Signed-off-by: Pawel Moll <mail@pawelmoll.com>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
drivers/bus/arm-ccn.c