Search Linux Wireless

Re: [PATCH 00/24] ath6kl cleaned up driver

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

 



On Wed, Jul 13, 2011 at 11:28:44AM +0200, Johannes Berg wrote:
> On Wed, 2011-07-13 at 12:22 +0300, Dan Carpenter wrote:
> 
> > warn: returning -1 instead of -ENOMEM is sloppy
> 
> out of curiosity -- why does it say "instead of -ENOMEM"? -1 really gets
> interpreted as "-EPERM" (since EPERM == 1)

It's for an allocation failure.  The code returns -1 (-EPERM) but it
should be returning -ENOMEM.

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux