From: Inaky Perez-Gonzalez Date: Thu, 21 May 2009 00:16:05 +0000 (-0700) Subject: wimax/i2400m: fix panic/warnings caused by missed check on empty TX message X-Git-Tag: v2.6.31-rc1~330^2~34^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c56affafdd29eb9764b0e35e3434cc06f6bc3781;p=pandora-kernel.git 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 --- Reading git-diff-tree failed