]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
s3c-fb: fix off-by-one bug in loop indexes
authorPawel Osciak <p.osciak@samsung.com>
Wed, 29 Jul 2009 22:02:10 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 30 Jul 2009 02:10:34 +0000 (19:10 -0700)
commitc42b110caeb128819104d057acdaa1ae564b7c8d
tree061a26895c4072382e6175d0c3fd620b392bd22d
parent3d768213a6c34a27fac1804143da8cf18b8b175f
s3c-fb: fix off-by-one bug in loop indexes

Fixed off-by-one bug in loop indexes - some elements beyond windows' array
were accessed, which might result in memory access violations when
removing/suspending the device.

Signed-off-by: Pawel Osciak <p.osciak@samsung.com>
Reviewed-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/s3c-fb.c