rapidio/tsi721: fix queue wrapping bug in inbound doorbell handler
authorAlexandre Bounine <alexandre.bounine@idt.com>
Mon, 5 Mar 2012 22:59:21 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 5 Mar 2012 23:49:43 +0000 (15:49 -0800)
commitb24823e61bfd93d0e72088e4f5245287582ed289
treebca721d4235a676cd4cfbfc0d467c9bce5b39fc2
parente6ca7b89dc76abf77c80887fed54e0a60c87c0a8
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 <alexandre.bounine@idt.com>
Cc: Chul Kim <chul.kim@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: <stable@vger.kernel.org> [3.2.x+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rapidio/devices/tsi721.c
This page took 0.027245 seconds and 5 git commands to generate.