Re: [bug report] tty: serial: Add Nuvoton ma35d1 serial driver support

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

 



Dear Dan,


On 2024/6/8 下午 10:24, Dan Carpenter wrote:
Hello Jacky Huang,

Commit 930cbf92db01 ("tty: serial: Add Nuvoton ma35d1 serial driver
support") from Jun 19, 2023 (linux-next), leads to the following
Smatch static checker warning:

         drivers/tty/serial/ma35d1_serial.c:713 ma35d1serial_probe()
         error: we previously assumed 'pdev->dev.of_node' could be null (see line 691)

drivers/tty/serial/ma35d1_serial.c
     685 static int ma35d1serial_probe(struct platform_device *pdev)
     686 {
     687         struct resource *res_mem;
     688         struct uart_ma35d1_port *up;
     689         int ret = 0;
     690
     691         if (pdev->dev.of_node) {
                     ^^^^^^^^^^^^^^^^^
Check for NULL

     692                 ret = of_alias_get_id(pdev->dev.of_node, "serial");


Thank you for point out this bug. I will fix it.


Best Regards,
Jacky Huang




[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