* [2.6 patch] drivers_mtd_maps_vmax301.c: fix off by one vmax_mtd
@ 2006-03-26 17:05 Adrian Bunk
0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2006-03-26 17:05 UTC (permalink / raw)
To: dwmw2; +Cc: Petri T. Koistinen, linux-mtd, linux-kernel
From: "Petri T. Koistinen" <petri.koistinen@iki.fi>
This patch fixes an obcious off-by-one error (vmax_mtd[] contains
two elements).
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.14-rc3-git3/drivers/mtd/maps/vmax301.c 2005-05-25 13:48:53.000000000 +1000
+++ .6877.trivial/drivers/mtd/maps/vmax301.c 2005-10-04 19:29:50.000000000 +1000
@@ -182,7 +182,7 @@ int __init init_vmax301(void)
}
}
- if (!vmax_mtd[1] && !vmax_mtd[2]) {
+ if (!vmax_mtd[0] && !vmax_mtd[1]) {
iounmap((void *)iomapadr);
return -ENXIO;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-26 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-26 17:05 [2.6 patch] drivers_mtd_maps_vmax301.c: fix off by one vmax_mtd Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox