Staging: rts_pstor: fix read past end of buffer
authorDan Carpenter <error27@gmail.com>
Wed, 9 Feb 2011 09:40:12 +0000 (12:40 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Feb 2011 20:11:55 +0000 (12:11 -0800)
commit7e79f78b331632c1812ce9c07443550aa2b6c0fe
tree225c640b23a12b619a57f4dfd02a251d82d73ae5
parent581de3b0a538aa18181602008aa222f51dcf1ec3
Staging: rts_pstor: fix read past end of buffer

We read one space past the end of the buffer because we add 1.

Also I changed it to use ARRAY_SIZE() instead of manually calculating
the size.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rts_pstor/ms.c