public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* re: pktcdvd: add struct pktcdvd_device * to pkt_dbg
@ 2013-08-01 15:44 Dan Carpenter
  2013-08-01 16:32 ` Joe Perches
  2013-08-02 20:10 ` [PATCH] pktcdvd: Fix defective misuses of pkt_<level> Joe Perches
  0 siblings, 2 replies; 6+ messages in thread
From: Dan Carpenter @ 2013-08-01 15:44 UTC (permalink / raw)
  To: kernel-janitors

Hello Joe Perches,

This is a semi-automatic email about new static checker warnings.

The patch 3567318a63ff: "pktcdvd: add struct pktcdvd_device * to 
pkt_dbg" from Aug 1, 2013, leads to the following Smatch complaint:

drivers/block/pktcdvd.c:2844 pkt_remove_dev()
	 error: we previously assumed 'pd' could be null (see line 2840)

drivers/block/pktcdvd.c
  2839			pd = pkt_devs[idx];
  2840			if (pd && (pd->pkt_dev = pkt_dev))
                            ^^
Old check.

  2841				break;
  2842		}
  2843		if (idx = MAX_WRITERS) {
  2844			pkt_dbg(1, pd, "dev not setup\n");
                                   ^^
New dereference.

  2845			ret = -ENXIO;
  2846			goto out;

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-26 10:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01 15:44 pktcdvd: add struct pktcdvd_device * to pkt_dbg Dan Carpenter
2013-08-01 16:32 ` Joe Perches
2013-08-02 20:10 ` [PATCH] pktcdvd: Fix defective misuses of pkt_<level> Joe Perches
2013-08-06 20:21   ` Andrew Morton
2013-08-06 23:58     ` Jiri Kosina
2013-08-26 10:58       ` Jiri Kosina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox