aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPawel Moll <[email protected]>2012-11-22 02:00:24 +0000
committerRusty Russell <[email protected]>2012-12-18 04:50:41 +0000
commit40f9938c4c69183c5ceaca74b77aff636cc79623 (patch)
tree94393c100ead39d57c4567cb9eca81fe859d72ee /net/unix/af_unix.c
parentvirtio_console: Free buffers from out-queue upon close (diff)
downloadkernel-40f9938c4c69183c5ceaca74b77aff636cc79623.tar.gz
kernel-40f9938c4c69183c5ceaca74b77aff636cc79623.zip
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 <[email protected]> Signed-off-by: Pawel Moll <[email protected]> Signed-off-by: Rusty Russell <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions