Input: gpio_keys - fix leaking DT node references
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 20 Oct 2016 22:11:45 +0000 (15:11 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 8 Nov 2016 00:24:30 +0000 (16:24 -0800)
commit0860913b02c28f0a1d8b515b99ae6419ef10569f
tree826c999a5cc5771dd6872e3d7cfa32e28053e50a
parentf9645f22584250336a99a23bc9e444396b5bc323
Input: gpio_keys - fix leaking DT node references

for_each_available_child_of_node(node, pp) takes reference to 'pp' and
drops it when attempting next iteration. However if we exit the loop early
we need to drop the reference ourselves.

Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys.c