]> git.baikalelectronics.ru Git - kernel.git/commit
Input: bfin_rotary - fix potential oops in interrupt handler
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 11 Feb 2015 01:47:04 +0000 (17:47 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 16 Feb 2015 00:06:04 +0000 (16:06 -0800)
commit0b85484e51f0c43f870b8e12f43dd577b3cc2e6c
tree80a38c05a787047337557a85b3a6e7aad602062a
parente716639644c99cea0dd635682be67de26d48dbf6
Input: bfin_rotary - fix potential oops in interrupt handler

The interrupt handler in the driver tries to fetch driver data from
platform device, unfortunately it is only set up after interrupt handler
is registered. Since interrupt handler does not really need to access
the platform device itself let's change it to get the driver data
instance instead.

Acked-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/bfin_rotary.c