]> git.baikalelectronics.ru Git - kernel.git/commit
staging: vt6656: rxtx.c [BUG] s_vGetFreeContext dead lock on null apTD.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 22 Sep 2013 19:15:58 +0000 (20:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:53:39 +0000 (16:53 -0700)
commitf338d35b7d658a143cdae1cc38770762fb240061
treef6011b972d4dd37852687223263b2b2f8e8c654d
parent188475ec4cee4883818d12da0cc5291386a97672
staging: vt6656: rxtx.c [BUG] s_vGetFreeContext dead lock on null apTD.

There seems to be race condition that the device is ndo_start_xmit
at a point where the device is closing and apTD is NULL resulting
in dead lock.

Add a NULL check to apTD and return NULL to calling functions.

This is more likely on 64 bit systems.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rxtx.c