Re: target: Fix excessive stack usage

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

 



James Bottomley wrote:

> @@ -1870,6 +1870,10 @@ static int __core_scsi3_update_aptpl_buf(
>  				"No Registrations or Reservations\n");
>  		return 0;
>  	}
> +	tmp = kmalloc(1024, GFP_KERNEL);
> +	if (!tmp)
> +		return -1;

Shouldn't this return useful errorcodes all over the place instead of just -1? 
Like -ENOMEM?

Eike

Attachment: signature.asc
Description: This is a digitally signed message part.


[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