diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2009-03-26 10:24:12 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-03-26 10:24:14 -0400 |
commit | a1f640734ab57d548a3fdadad6b869da534d4ecb (patch) | |
tree | 05b02b7afedc9b8f3bfbc6e8c11d46ba4247c0c7 /drivers/s390 | |
parent | 90ac24a5aeb8d4bef001bd3589564a52846d0eee (diff) |
[S390] cio: airq - fix array boundary
MAX_ISC is a valid isc number, so arrays with an index of isc
need to have a length of MAX_ISC+1
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/cio/airq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/airq.c b/drivers/s390/cio/airq.c index d3850dc30e42..65d2e769dfa1 100644 --- a/drivers/s390/cio/airq.c +++ b/drivers/s390/cio/airq.c | |||
@@ -34,8 +34,8 @@ struct airq_t { | |||
34 | void *drv_data; | 34 | void *drv_data; |
35 | }; | 35 | }; |
36 | 36 | ||
37 | static union indicator_t indicators[MAX_ISC]; | 37 | static union indicator_t indicators[MAX_ISC+1]; |
38 | static struct airq_t *airqs[MAX_ISC][NR_AIRQS]; | 38 | static struct airq_t *airqs[MAX_ISC+1][NR_AIRQS]; |
39 | 39 | ||
40 | static int register_airq(struct airq_t *airq, u8 isc) | 40 | static int register_airq(struct airq_t *airq, u8 isc) |
41 | { | 41 | { |