[<prev] [next>] [day] [month] [year] [list]
Message-ID: <688ece87-00f9-7a54-cd58-3c6b9b416cb4@gmail.com>
Date: Sat, 31 Jul 2021 12:07:54 +0800
From: Li Tuo <islituo@...il.com>
To: yokota@...lab.is.tsukuba.ac.jp, jejb@...ux.ibm.com,
martin.petersen@...cle.com
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
baijiaju1990@...il.com
Subject: [BUG] scsi: pcmcia: nsp_cs: possible null-pointer dereference in
nsp_cs_config()
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@...nghua.edu.cn>
Best wishes,
Tuo Li
Powered by blists - more mailing lists