]> git.baikalelectronics.ru Git - kernel.git/commit
isdn/gigaset: Provide cardstate context for bas timer callbacks
authorKees Cook <keescook@chromium.org>
Fri, 20 Oct 2017 20:47:08 +0000 (13:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Oct 2017 00:30:11 +0000 (01:30 +0100)
commit3271992aa484fc35191c1e1eb6908f64d2507f30
tree5987395998bae1ba966523f9d728ff0c5c29cbc9
parent943add3e5d5df49ad7866edb80bc78dcd0c4a5ec
isdn/gigaset: Provide cardstate context for bas timer callbacks

While the work callback uses the urb to find cardstate from bas_cardstate,
this may not be valid for timer callbacks. Instead, introduce a direct
pointer back to the cardstate from bas_cardstate for use in timer
callbacks.

Reported-by: Paul Bolle <pebolle@tiscali.nl>
Fixes: 4e9c63d3e7f4 ("isdn/gigaset: Convert timers to use timer_setup()")
Cc: Paul Bolle <pebolle@tiscali.nl>
Cc: Karsten Keil <isdn@linux-pingi.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Johan Hovold <johan@kernel.org>
Cc: gigaset307x-common@lists.sourceforge.net
Cc: netdev@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/gigaset/bas-gigaset.c