aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ipath/ipath_cq.c
diff options
context:
space:
mode:
authorAli Ayoub <ali@mellanox.co.il>2007-11-13 15:26:57 -0800
committerRoland Dreier <rolandd@cisco.com>2007-11-13 15:26:57 -0800
commit3bba11e5c47dfc1d381a1ece26464fb7eea2d79c (patch)
tree70eab30ede7905899420a52a350eb7ba15f82955 /drivers/infiniband/hw/ipath/ipath_cq.c
parentMerge branch 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6 (diff)
downloadlinux-dev-3bba11e5c47dfc1d381a1ece26464fb7eea2d79c.tar.xz
linux-dev-3bba11e5c47dfc1d381a1ece26464fb7eea2d79c.zip
mlx4_core: Fix possible bad free in mlx4_buf_free()
When mlx4_buf_free() is called from the error path of mlx4_buf_alloc(), it may be passed a buffer structure that does not have all pages filled in. Add a check for NULL to mlx4_buf_free() so we avoid passing NULL to dma_free_coherent() (which will crash). Signed-off-by: Ali Ayoub <ali@mellanox.co.il> Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_cq.c')
0 files changed, 0 insertions, 0 deletions