lkml.org 
[lkml]   [2021]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[BUG] scsi: pcmcia: nsp_cs: possible null-pointer dereference in nsp_cs_config()
Date
Hello,

Our static analysis tool finds a possible null-pointer dereference in
the pcmcia driver in Linux 5.14.0-rc3:

The variable link->resource[0] is checked in:
1599:    if (link->resource[0])

This indicates that link->resource[0] can be NULL.
But it is dereferenced in:
1610:    data->BaseAddress = link->resource[0]->start;

I am not quite sure whether this possible null-pointer dereference is
real and how to fix it if it is real.
Any feedback would be appreciated, thanks!

Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>

Best wishes,
Tuo Li

\
 
 \ /
  Last update: 2021-07-31 06:09    [W:0.027 / U:0.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site