Re: [PATCH] qla2xxx: Fix Null ptr dereference in fail path in queue create code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux