From: Michael Buesch Date: Mon, 20 Jul 2009 22:58:44 +0000 (+0000) Subject: parisc: isa-eeprom - Fix loff_t usage X-Git-Tag: v2.6.31-rc6~72^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b4dbcd86a9d464057fcc7abe4d0574093071fcc;p=pandora-kernel.git parisc: isa-eeprom - Fix loff_t usage loff_t is a signed type. If userspace passes a negative ppos, the "count" range check is weakened. "count"s bigger than HPEE_MAX_LENGTH will pass the check. Also, if ppos is negative, the readb(eisa_eeprom_addr + *ppos) will poke in random memory. Signed-off-by: Michael Buesch Cc: stable@kernel.org Signed-off-by: Helge Deller --- Reading git-diff-tree failed