diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2013-05-27 19:07:19 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-07-13 10:34:44 -0700 |
commit | 3bb0ab9e10eecc932df94807cacb90ca30010cb7 (patch) | |
tree | 03da8548124ada33b9fbf50362bb66340fbe093a /lib/genalloc.c | |
parent | 5583db3830ede897a8e4709452bcf0bc5266bdd9 (diff) | |
download | linux-stable-3bb0ab9e10eecc932df94807cacb90ca30010cb7.tar.gz linux-stable-3bb0ab9e10eecc932df94807cacb90ca30010cb7.tar.bz2 linux-stable-3bb0ab9e10eecc932df94807cacb90ca30010cb7.zip |
SCSI: sd: Fix parsing of 'temporary ' cache mode prefix
commit 2ee3e26c673e75c05ef8b914f54fadee3d7b9c88 upstream.
Commit 39c60a0948cc '[SCSI] sd: fix array cache flushing bug causing
performance problems' added temp as a pointer to "temporary " and used
sizeof(temp) - 1 as its length. But sizeof(temp) is the size of the
pointer, not the size of the string constant. Change temp to a static
array so that sizeof() does what was intended.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/genalloc.c')
0 files changed, 0 insertions, 0 deletions