From: Pawel Moll Date: Thu, 22 Nov 2012 02:00:24 +0000 (+1030) Subject: virtio-mmio: Fix irq parsing in command line parameter X-Git-Tag: v3.8-rc1~28^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40f9938c4c69183c5ceaca74b77aff636cc79623;p=pandora-kernel.git virtio-mmio: Fix irq parsing in command line parameter When the resource_size_t is 64-bit long, the sscanf() on the virtio device command line paramter string may return wrong value because its format was defined as "%u". Fixed by using an intermediate local value of a known length. Also added cleaned up the resource creation and added extra comments to make the parameters parsing easier to follow. Reported-by: Lee Jones Signed-off-by: Pawel Moll Signed-off-by: Rusty Russell --- Reading git-diff-tree failed