mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
vme: 8-bit status/id takes 256 values, not 255
Fixes an off by one array size. Signed-off-by: Dmitry Kalinkin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
37784706bf
commit
ad1bfe410e
2 changed files with 6 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef _VME_BRIDGE_H_
|
||||
#define _VME_BRIDGE_H_
|
||||
|
||||
#include <linux/vme.h>
|
||||
|
||||
#define VME_CRCSR_BUF_SIZE (508*1024)
|
||||
/*
|
||||
* Resource structures
|
||||
|
|
@ -88,7 +90,7 @@ struct vme_callback {
|
|||
|
||||
struct vme_irq {
|
||||
int count;
|
||||
struct vme_callback callback[255];
|
||||
struct vme_callback callback[VME_NUM_STATUSID];
|
||||
};
|
||||
|
||||
/* Allow 16 characters for name (including null character) */
|
||||
|
|
|
|||
Loading…
Reference in a new issue