aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_timer.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <[email protected]>2012-04-02 13:37:13 +1000
committerDave Airlie <[email protected]>2012-04-02 11:05:58 +0100
commitea71f98d680c9ac768a7849d26d7ce4744064510 (patch)
tree696b8eb9fc6541f71caede709857de3f07d08f06 /net/lapb/lapb_timer.c
parent40c61046ee3007d73f141e96aa2f3dd56ee321c6 (diff)
nouveau: Fix crash when pci_ram_rom() returns a size of 0
From b15b244d6e6e20964bd4b85306722cb60c3c0809 Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt <[email protected]> Date: Mon, 2 Apr 2012 13:28:18 +1000 Subject: Under some circumstances, pci_map_rom() can return a valid mapping but a size of 0 (if it cannot find an image in the header). This causes nouveau to try to kmalloc() a 0 sized pointer and dereference it, which crashes. Signed-off-by: Benjamin Herrenschmidt <[email protected]> Acked-by: Ben Skeggs <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions