1
0
Files
linux/drivers/scsi
Ishai Rabinovitz 454e8957eb [SCSI] sg.c: Fix bad error handling in
I got a NULL derefrence in cdev_del+1 when called from sg_remove. By looking at
the code of sg_add, sg_alloc and sg_remove (all in drivers/scsi/sg.c) I found
out that sg_add is calling sg_alloc but if it fails afterwards it does not
deallocate the space that was allocated in sg_alloc and the redundant entry has
NULL in cdev. When sg_remove is being called, it tries to perform cdev_del to
this NULL cdev and fails.

Signed-off-by: Ishai Rabinovitz <ishai@mellanox.co.il>
Acked-by: Douglas Gilbert <dougg@torque.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2006-06-30 21:28:35 -05:00
..
2005-04-16 15:20:36 -07:00
2006-06-23 07:43:08 -07:00
2006-06-28 14:06:39 -04:00
2006-01-01 22:21:50 +01:00
2006-01-14 10:55:12 -06:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-06-26 18:35:02 +02:00
2006-03-14 14:18:01 -06:00
2005-04-16 15:20:36 -07:00
2006-06-26 20:41:33 -04:00
2006-06-26 20:41:33 -04:00
2006-03-25 08:22:52 -08:00
2005-04-16 15:20:36 -07:00
2006-06-26 18:35:02 +02:00
2005-04-16 15:20:36 -07:00
2005-11-09 15:44:09 -05:00
2005-04-16 15:20:36 -07:00
2005-10-28 21:04:15 -05:00
2005-04-16 15:20:36 -07:00
2005-11-09 15:48:20 -05:00
2005-11-09 15:48:20 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-06-26 18:35:02 +02:00
2006-06-23 07:43:08 -07:00
2006-04-13 10:13:30 -05:00
2006-06-26 18:35:02 +02:00
2006-05-20 09:35:20 -05:00
2006-03-14 14:18:01 -06:00
2005-04-16 15:20:36 -07:00
2006-06-25 10:00:58 -07:00
2006-06-25 10:00:58 -07:00
2006-06-23 07:43:08 -07:00
2005-04-16 15:20:36 -07:00
2006-06-26 09:58:18 -07:00
2006-02-27 22:55:08 -06:00
2006-01-12 09:09:05 -08:00
2005-11-09 15:48:20 -05:00
2006-06-26 18:35:02 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-06-10 16:25:21 -05:00
2005-11-09 15:48:20 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-05-20 12:53:13 -05:00
2005-05-20 12:53:13 -05:00
2005-05-20 12:53:13 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-06-26 20:41:33 -04:00
2006-05-31 18:28:09 +09:00
2006-06-26 20:41:33 -04:00
2006-06-26 20:41:33 -04:00
2006-05-31 18:28:09 +09:00
2006-06-26 20:41:33 -04:00
2006-06-26 20:41:33 -04:00
2005-04-16 15:20:36 -07:00
2006-06-26 09:12:42 -05:00
2005-04-16 15:20:36 -07:00
2006-06-26 09:30:00 -05:00
2005-04-16 15:20:36 -07:00
2006-06-27 10:53:55 -05:00
2005-04-16 15:20:36 -07:00
2006-06-22 22:11:56 -04:00
2006-06-30 21:28:35 -05:00
2005-12-17 10:50:23 -06:00
2006-03-23 07:38:09 -08:00
2005-04-16 15:20:36 -07:00
2006-06-29 11:06:30 -04:00
2006-06-29 11:06:30 -04:00
2005-10-28 21:04:15 -05:00
2005-04-16 15:20:36 -07:00
2006-06-23 07:43:01 -07:00
2005-04-16 15:20:36 -07:00