]> git.baikalelectronics.ru Git - kernel.git/commit
wimax/i2400m: fix panic/warnings caused by missed check on empty TX message
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Thu, 21 May 2009 00:16:05 +0000 (17:16 -0700)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Thu, 11 Jun 2009 10:30:21 +0000 (03:30 -0700)
commit526c332bd3c77e0debdf4da0c03dd4b1dbc2f380
treeb79de2da47cba80882ae85cf7f271cc7f574a27e
parentecee79d863fd9150659c0b85d77b3b365c8995de
wimax/i2400m: fix panic/warnings caused by missed check on empty TX message

In some situations, when a new TX message header is started, there
might be no space for data payloads. In this case the message is left
with zero payloads and the i2400m_tx_close() function has just to mark
it as "to skip". If it tries to go ahead it will overwrite things
because there is no space to add padding as defined by the
bus-specific layer. This can cause buffer overruns and in some stress
cases, panics.

Found and diagnosed by Cindy H. Kao.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
drivers/net/wimax/i2400m/tx.c