Re: [PATCH 1/2] tty: serial: 8250: omap: line is unsigned, don't check < 0

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

 



On 11/12/2014 10:28 AM, Sebastian Andrzej Siewior wrote:
> Dan Carpenter reported:
> |drivers/tty/serial/8250/8250_omap.c:1025 omap8250_probe()
> |warn: unsigned 'up.port.line' is never less than zero.
> |1025          if (up.port.line < 0) {
> 
> I (wrongly) assumed that line is an int and compiler didn't complain nor
> did sparse. Since of_alias_get_id() and pdev->id can get negative I
> check for the error via ret variable.
> 
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@xxxxxxxxxxxxx>

Greg, did those two slip through or do you wait for something until you
apply them?

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




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux