Ali Ayoub 3bba11e5c4 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>
2007-11-13 15:26:57 -08:00
..
2007-10-17 08:42:52 -07:00
2007-08-22 19:52:46 -07:00
2007-11-02 08:47:06 +01:00
2007-07-21 18:37:12 -07:00
2007-10-29 17:27:50 -04:00
2007-10-16 09:43:09 -07:00
2007-10-19 11:53:42 -07:00
2007-10-20 01:34:40 +02:00
2007-11-05 15:12:31 -08:00
2007-11-05 21:54:41 +00:00
2007-11-05 15:12:31 -08:00
2007-10-20 01:34:40 +02:00
2007-10-25 17:43:46 -04:00
2007-11-10 11:59:49 +01:00
2007-10-23 09:49:31 +02:00
2007-10-19 11:53:41 -07:00
2007-10-19 11:53:41 -07:00
2007-10-20 15:04:06 -07:00
2007-10-29 07:41:33 -07:00
2007-10-17 08:42:57 -07:00
2007-11-02 08:47:06 +01:00
2007-10-23 15:49:54 +10:00