Re: [PATCH] Input: max8925_onkey - avoid accessing input device too early

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 6, 2012 at 2:31 PM, Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> wrote:
> Input device must be allocated (but not necessarily registered) before
> requesting IRQs, otherwise there is a chance that IRQ handler fires and
> tries to reference not yet allocated input device.
>
> Also it makes sense to store relative IRQ numbers in max8925_onkey_info
> structure as they are needed in suspend/resume which we expect to be
> called more often than probe and remove.
>
> Signed-off-by: Dmitry Torokhov <dtor@xxxxxxx>
> ---
>
>  drivers/input/misc/max8925_onkey.c |   91 +++++++++++++++++-------------------
>  1 files changed, 44 insertions(+), 47 deletions(-)
>
>

Acked-by: Haojian Zhuang <haojian.zhuang@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux