* char/cyclades.c: inconsequent NULL checking
@ 2007-10-22 2:47 Adrian Bunk
2007-10-22 19:06 ` Jiri Slaby
0 siblings, 1 reply; 4+ messages in thread
From: Adrian Bunk @ 2007-10-22 2:47 UTC (permalink / raw)
To: Jiri Slaby; +Cc: linux-kernel
The Coverity checker spotted the following inconsequent NULL checking in
drivers/char/cyclades.c:
<-- snip -->
...
static void cyz_handle_tx(struct cyclades_port *info,
struct BUF_CTRL __iomem *buf_ctrl)
{
struct cyclades_card *cinfo = info->card;
struct tty_struct *tty = info->tty;
...
if (tty == NULL)
goto ztxdone;
...
tty_wakeup(tty);
...
<-- snip -->
Nothing in cyz_handle_tx() seems to change "tty".
The "tty_wakeup(tty);" was added in commit
ebafeeff0fea029099e9952f233e0794106897a6.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: char/cyclades.c: inconsequent NULL checking
2007-10-22 2:47 char/cyclades.c: inconsequent NULL checking Adrian Bunk
@ 2007-10-22 19:06 ` Jiri Slaby
2007-10-22 19:12 ` Jiri Kosina
0 siblings, 1 reply; 4+ messages in thread
From: Jiri Slaby @ 2007-10-22 19:06 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel
On 10/22/2007 04:47 AM, Adrian Bunk wrote:
> The Coverity checker spotted the following inconsequent NULL checking in
Where can one obtain such a checker?
> drivers/char/cyclades.c:
>
> <-- snip -->
>
> ...
> static void cyz_handle_tx(struct cyclades_port *info,
> struct BUF_CTRL __iomem *buf_ctrl)
> {
> struct cyclades_card *cinfo = info->card;
> struct tty_struct *tty = info->tty;
> ...
> if (tty == NULL)
> goto ztxdone;
> ...
> tty_wakeup(tty);
> ...
>
> <-- snip -->
patch on route, thanks,
--
Jiri Slaby (jirislaby@gmail.com)
Faculty of Informatics, Masaryk University
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: char/cyclades.c: inconsequent NULL checking
2007-10-22 19:06 ` Jiri Slaby
@ 2007-10-22 19:12 ` Jiri Kosina
2007-10-22 19:42 ` Adrian Bunk
0 siblings, 1 reply; 4+ messages in thread
From: Jiri Kosina @ 2007-10-22 19:12 UTC (permalink / raw)
To: Jiri Slaby; +Cc: Adrian Bunk, linux-kernel
On Mon, 22 Oct 2007, Jiri Slaby wrote:
> > The Coverity checker spotted the following inconsequent NULL checking in
> Where can one obtain such a checker?
That's a commercial proprietary thingie.
http://www.coverity.com/
--
Jiri Kosina
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: char/cyclades.c: inconsequent NULL checking
2007-10-22 19:12 ` Jiri Kosina
@ 2007-10-22 19:42 ` Adrian Bunk
0 siblings, 0 replies; 4+ messages in thread
From: Adrian Bunk @ 2007-10-22 19:42 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Jiri Slaby, linux-kernel
On Mon, Oct 22, 2007 at 09:12:23PM +0200, Jiri Kosina wrote:
> On Mon, 22 Oct 2007, Jiri Slaby wrote:
>
> > > The Coverity checker spotted the following inconsequent NULL checking in
> > Where can one obtain such a checker?
>
> That's a commercial proprietary thingie.
>
> http://www.coverity.com/
A bit more of background:
The US Department of Homeland Security pays them some money for scanning
open source projects, the Linux kernel is one of these projects, and
kernel developers can therefore get access to the database with the
results from their regular scans of Linus' tree.
I'm not a fan of proprietary software, but I'm simply considering their
results as bug reports that are worth looking at.
> Jiri Kosina
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-10-22 19:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-22 2:47 char/cyclades.c: inconsequent NULL checking Adrian Bunk
2007-10-22 19:06 ` Jiri Slaby
2007-10-22 19:12 ` Jiri Kosina
2007-10-22 19:42 ` Adrian Bunk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox