sur40: fix occasional oopses on device close
authorFlorian Echtler <floe@butterbrot.org>
Tue, 31 May 2016 20:15:33 +0000 (17:15 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 16:09:19 +0000 (18:09 +0200)
commit1fe16eaeb94068fbe002ec75cb4799a2474108fd
tree93963ab44c9aeee9849acb6dcccde31f270c3631
parentf8ad7cb60062a5a0514eb720b44f164276ebc4e0
sur40: fix occasional oopses on device close

commit 6a8588156657e607fcfdffd46c1daae8ba88a1e5 upstream.

Closing the V4L2 device sometimes triggers a kernel oops.
Present patch fixes this.

Signed-off-by: Martin Kaltenbrunner <modin@yuri.at>
Signed-off-by: Florian Echtler <floe@butterbrot.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/touchscreen/sur40.c