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.3-rc7~37^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b24823e61bfd93d0e72088e4f5245287582ed289;p=pandora-kernel.git rapidio/tsi721: fix queue wrapping bug in inbound doorbell handler 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 Cc: [3.2.x+] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed