linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* re: ufs: definitions for phy interface
@ 2014-10-02 15:31 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2014-10-02 15:31 UTC (permalink / raw)
  To: draviv; +Cc: linux-scsi

Hello Dolev Raviv,

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

The patch e785060ea3a1: "ufs: definitions for phy interface" from Sep 
25, 2014, leads to the following Smatch complaint:

drivers/scsi/ufs/ufshcd.c:5118 ufshcd_system_suspend()
	 error: we previously assumed 'hba' could be null (see line 5089)

drivers/scsi/ufs/ufshcd.c
  5088	
  5089		if (!hba || !hba->is_powered)
                    ^^^^
Existing check for NULL.

  5090			goto out;
  5091	

[ snip ]

  5115		ret = ufshcd_suspend(hba, UFS_SYSTEM_PM);
  5116	out:
  5117		if (!ret)
  5118			hba->is_sys_suspended = true;
                        ^^^^^^^^^^^^^^^^^^^^^
New unchecked dereference.  This is a One Err Bug caused by "out" label
style error handling.

  5119		return ret;
  5120	}

regards,
dan carpenter

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-02 15:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-02 15:31 ufs: definitions for phy interface Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).