linux-mediatek.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: "Christian Lütke-Stetzkamp" <christian@lkamp.de>
To: Dan Carpenter <dan.carpenter@oracle.com>
Cc: devel@driverdev.osuosl.org, NeilBrown <neil@brown.name>,
	linux-mediatek@lists.infradead.org, blogic@openwrt.org
Subject: Re: [bug report] staging: mt7621-mmc: MIPS: ralink: add sdhci for mt7620a SoC
Date: Thu, 5 Apr 2018 18:39:47 +0200	[thread overview]
Message-ID: <20180405163947.GA20350@demeter.lkamp.de> (raw)
In-Reply-To: <20180405121310.GA7782@mwanda>

On Thu, Apr 05, 2018 at 03:13:10PM +0300, Dan Carpenter wrote:
> [ I just decided to forward you guys all the Smatch warnings.  -dan ]
> 
> Hello John Crispin,
> 
> The patch 8b634a9c7620: "staging: mt7621-mmc: MIPS: ralink: add sdhci
> for mt7620a SoC" from Mar 15, 2018, leads to the following static
> checker warning:
>
> 	drivers/staging/mt7621-mmc/sd.c:951 msdc_command_start()
> 	warn: we tested 'opcode == 3' before and it was 'false'
>
>         drivers/staging/mt7621-mmc/sd.c:2961 msdc_drv_suspend()
>         warn: variable dereferenced before check 'mmc' (see line 2959)
>
>         drivers/staging/mt7621-mmc/sd.c:2976 msdc_drv_resume()
>         warn: variable dereferenced before check 'mmc' (see line 2972)
>
>         drivers/staging/mt7621-mmc/dbg.c:270 msdc_debug_proc_write()
>         warn: copy_to/from_user() returns a positive value
>
>         drivers/staging/mt7621-mmc/dbg.c:339 msdc_debug_proc_init()
>         warn: proc file '"msdc_debug"' is world writable
>
> 	drivers/staging/mt7621-mmc/dbg.c:341 msdc_debug_proc_init()
> 	warn: 'de' isn't an ERR_PTR

Hi Dan,

thanks for the report, I have created patches for all of these and
will send them, once my previous series got merged, because I based
them on that status.

Christian

  parent reply	other threads:[~2018-04-05 16:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-05 12:13 [bug report] staging: mt7621-mmc: MIPS: ralink: add sdhci for mt7620a SoC Dan Carpenter
2018-04-05 12:26 ` John Crispin
2018-04-05 16:39 ` Christian Lütke-Stetzkamp [this message]
2018-04-06  7:09   ` Dan Carpenter
2018-04-06  7:39     ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2018-04-05 11:56 Dan Carpenter
2018-04-05 12:26 ` John Crispin
2018-04-05 16:46 ` Christian Lütke-Stetzkamp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180405163947.GA20350@demeter.lkamp.de \
    --to=christian@lkamp.de \
    --cc=blogic@openwrt.org \
    --cc=dan.carpenter@oracle.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=neil@brown.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).