From: Alexandre Bounine Date: Mon, 5 Mar 2012 22:59:21 +0000 (-0800) Subject: rapidio/tsi721: fix queue wrapping bug in inbound doorbell handler X-Git-Tag: v3.2.10~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51ee89d8195e9529e41ba46ae84a2329fe56f805;p=pandora-kernel.git rapidio/tsi721: fix queue wrapping bug in inbound doorbell handler commit b24823e61bfd93d0e72088e4f5245287582ed289 upstream. Fix a bug that causes a kernel panic when the number of received doorbells is larger than number of entries in the inbound doorbell queue (current default value = 512). Another possible indication for this bug is large number of spurious doorbells reported by tsi721 driver after reaching the queue size maximum. Signed-off-by: Alexandre Bounine Cc: Chul Kim Cc: Matt Porter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed