aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vme
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2015-10-10 18:00:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-18 01:03:00 -0400
commitad1bfe410e91189522514ea784668dc75a4e64c4 (patch)
tree516b42acabd3366dfacc1261b870e58183f5e680 /drivers/vme
parent37784706bf9e3b723898125b47d6f1e76a8db418 (diff)
vme: 8-bit status/id takes 256 values, not 255
Fixes an off by one array size. Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/vme')
-rw-r--r--drivers/vme/vme_bridge.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/vme/vme_bridge.h b/drivers/vme/vme_bridge.h
index 934949abd745..a3ef63b336e4 100644
--- a/drivers/vme/vme_bridge.h
+++ b/drivers/vme/vme_bridge.h
@@ -1,6 +1,8 @@
1#ifndef _VME_BRIDGE_H_ 1#ifndef _VME_BRIDGE_H_
2#define _VME_BRIDGE_H_ 2#define _VME_BRIDGE_H_
3 3
4#include <linux/vme.h>
5
4#define VME_CRCSR_BUF_SIZE (508*1024) 6#define VME_CRCSR_BUF_SIZE (508*1024)
5/* 7/*
6 * Resource structures 8 * Resource structures
@@ -88,7 +90,7 @@ struct vme_callback {
88 90
89struct vme_irq { 91struct vme_irq {
90 int count; 92 int count;
91 struct vme_callback callback[255]; 93 struct vme_callback callback[VME_NUM_STATUSID];
92}; 94};
93 95
94/* Allow 16 characters for name (including null character) */ 96/* Allow 16 characters for name (including null character) */