]> git.baikalelectronics.ru Git - kernel.git/commit
vme: tsi148: Only store VME bus errors if they will be checked
authorMartyn Welch <martyn.welch@ge.com>
Tue, 11 Jun 2013 10:20:17 +0000 (11:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 23:41:50 +0000 (16:41 -0700)
commit3b3f57057076cf3b4702928b38038f65f7b67517
treeecad36019c26f0a3949232d4fbf03a67d8d41015
parentf923cab6de653e30e67ae2de01efb2705d7d55e2
vme: tsi148: Only store VME bus errors if they will be checked

The TSI148 driver provides an optional mechanism for ensuring that errors
resulting from posted transfers are caught whilst still relevant. To do this
errors are stored in a link list. If bus errors are not checked, this list
would grow until available memory had been exhausted.

Only store the errors in a link list if error detection is switched on.

Reported-by: De Roo, Steven <steven.deroo@arcelormittal.com>
Signed-off-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vme/bridges/vme_tsi148.c