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)
commit8fb22264350d99793a12867f4e2a43e50150f778
tree2f534c04c9f49610add56500ec19ae4f712bd6dc
parent95f6e8142d82789eca977ccdd6153a48b343fde9
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