]> err.no Git - linux-2.6/commit
[MTD] Fix length comparison in MEMREADOOB
authorThomas Gleixner <tglx@inhell4.(none)>
Fri, 13 Apr 2007 17:50:48 +0000 (19:50 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 17 Apr 2007 17:40:00 +0000 (13:40 -0400)
commit408b483d9cc2d839ecbc9134958c42814865081c
tree7b96d7fdc47a9666080f2588e98872368e64bb9b
parent1cf9827b6852d5d81130efbf2e777e50b7126d23
[MTD] Fix length comparison in MEMREADOOB

The ops.len member is not initialized, because it is unused for this
operation. The length check needs to use ops.ooblen instead

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/mtdchar.c