]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kernel/resource.c: fix sign extension in reserve_setup()
authorZhang Rui <rui.zhang@intel.com>
Tue, 30 Jun 2009 18:41:31 +0000 (11:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Jul 2009 03:45:00 +0000 (20:45 -0700)
commit01a6403211958921247f4e65b16376e6ec706a0d
tree86569254a3400819bcd03528fbdee4152153f671
parent4af3aa317b819743c34e1f1b0bb989e132eaad46
kernel/resource.c: fix sign extension in reserve_setup()

commit 8bc1ad7dd301b7ca7454013519fa92e8c53655ff upstream.

When the 32-bit signed quantities get assigned to the u64 resource_size_t,
they are incorrectly sign-extended.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=13253
Addresses http://bugzilla.kernel.org/show_bug.cgi?id=9905

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Reported-by: Leann Ogasawara <leann@ubuntu.com>
Cc: Pierre Ossman <drzeus@drzeus.cx>
Reported-by: <pablomme@googlemail.com>
Tested-by: <pablomme@googlemail.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/resource.c