Commit a1f64073 authored by Sebastian Ott's avatar Sebastian Ott Committed by Martin Schwidefsky

[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: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 90ac24a5
...@@ -34,8 +34,8 @@ struct airq_t { ...@@ -34,8 +34,8 @@ struct airq_t {
void *drv_data; void *drv_data;
}; };
static union indicator_t indicators[MAX_ISC]; static union indicator_t indicators[MAX_ISC+1];
static struct airq_t *airqs[MAX_ISC][NR_AIRQS]; static struct airq_t *airqs[MAX_ISC+1][NR_AIRQS];
static int register_airq(struct airq_t *airq, u8 isc) static int register_airq(struct airq_t *airq, u8 isc)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment