Re: [PATCH] isdn/gigaset: Provide cardstate context for bas timer callbacks
From: David Miller
Date: Sun Oct 22 2017 - 22:12:57 EST
From: Kees Cook <keescook@xxxxxxxxxxxx>
Date: Fri, 20 Oct 2017 13:47:08 -0700
> 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@xxxxxxxxxx>
> Fixes: 4cfea08e6251 ("isdn/gigaset: Convert timers to use timer_setup()")
> Cc: Paul Bolle <pebolle@xxxxxxxxxx>
> Cc: Karsten Keil <isdn@xxxxxxxxxxxxxx>
> Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
> Cc: Johan Hovold <johan@xxxxxxxxxx>
> Cc: gigaset307x-common@xxxxxxxxxxxxxxxxxxxxx
> Cc: netdev@xxxxxxxxxxxxxxx
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
Applied to net-next.