On 09/25/2009 09:45 AM, Anirban Chakraborty wrote: > Current code jumps to fail path in queue create functions and there it invokes > the queue free call with a (NULL) pointer to the queue which could not be > allocated. Fix it by returning ENOMEM directly without invoking the queue free Sorry, staring at callers now. They expect 0 on error. So both my and your patches are wrong in this manner. There should be 'return 0'. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html