- To: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: New Defects based on recent changes in Kernel code found by Coverity Scan
- From: "Love, Robert W" <robert.w.love@xxxxxxxxx>
- Date: Thu, 5 Jul 2012 15:12:21 +0000
- Accept-language: en-US
- Cc: Scan Subscription <scan-subscription@xxxxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "linux-scsi@xxxxxxxxxxxxxxx" <linux-scsi@xxxxxxxxxxxxxxx>, Chris Mason <chris.mason@xxxxxxxxxxxx>, Bing Zhao <bzhao@xxxxxxxxxxx>, Andrew Vasquez <andrew.vasquez@xxxxxxxxxx>, "Theodore Ts'o" <tytso@xxxxxxx>, "linux-ext4@xxxxxxxxxxxxxxx" <linux-ext4@xxxxxxxxxxxxxxx>, Mattia Dongili <malattia@xxxxxxxx>, Matthew Garrett <mjg@xxxxxxxxxx>
- In-reply-to: <20120703152739.ea7df9e6.akpm@linux-foundation.org>
- Thread-topic: New Defects based on recent changes in Kernel code found by Coverity Scan
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
On 7/3/2012 3:27 PM, Andrew Morton wrote:
> On Thu, 28 Jun 2012 11:32:09 -0700
> Scan Subscription <scan-subscription@xxxxxxxxxxxx> wrote:
>
> ____________________________________________________________________________________________________________
> CID 703581 - NO_EFFECT Unsigned compared against 0 - This less-than-zero comparison of an unsigned value is never true. "*val < 0UL".
>
> drivers/scsi/fcoe/fcoe_sysfs.c:105
> 100 static int fcoe_str_to_dev_loss(const char *buf, unsigned long *val)
> 101 {
> 102 int ret;
> 103
> 104 ret = kstrtoul(buf, 0, val);
>>>>> CID 703581: Unsigned compared against 0 (NO_EFFECT) This less-than-zero comparison of an unsigned value is never true. "*val < 0UL".
>> 105 if (ret || *val < 0)
>> 106 return -EINVAL;
>> 107 /*
>> 108 * Check for overflow; dev_loss_tmo is u32
>>
Patch posted to linux-scsi.
Thanks, //Rob--
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
[SCSI Target Devel]
[Linux SCSI Target Infrastructure]
[Kernel Newbies]
[Share Photos]
[IDE]
[Security]
[Git]
[Netfilter]
[Bugtraq]
[Photos]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Linux ATA RAID]
[Linux IIO]
[Samba]
[Video 4 Linux]
[Device Mapper]
[Linux Resources]