From: Takashi Iwai Date: Mon, 1 Dec 2008 21:13:49 +0000 (-0800) Subject: parport_serial: fix array overflow X-Git-Tag: v2.6.28-rc7~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36be47d6d8d98f54b6c4f891e9f54fb2bf554584;p=pandora-kernel.git parport_serial: fix array overflow The netmos_9xx5_combo type assumes that PCI SSID provides always the correct value for the number of parallel and serial ports, but there are indeed broken devices with wrong numbers, which may result in Oops. This patch simply adds the check of the array range. Reference: Novell bnc#447067 https://bugzilla.novell.com/show_bug.cgi?id=447067 Signed-off-by: Takashi Iwai Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed