All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: kernel-janitors@vger.kernel.org
Subject: drivers/media/rc/iguanair.c:276 iguanair_receiver() error: doing dma on the stack ((null))
Date: Wed, 26 Sep 2012 17:01:04 +0000	[thread overview]
Message-ID: <20120926170104.GC25467@localhost> (raw)

Hi Sean,

FYI, there are new smatch warnings show up in

tree:   git://git.infradead.org/users/kmpark/linux-samsung commit-list
commit: 26ff63137c45886169ed102bddd6e90d6c27f00d [media] Add support for the IguanaWorks USB IR Transceiver

  drivers/media/rc/iguanair.c:211 iguanair_get_features() error: doing dma on the stack ((null))
  drivers/media/rc/iguanair.c:230 iguanair_get_features() error: doing dma on the stack ((null))
  drivers/media/rc/iguanair.c:249 iguanair_get_features() error: doing dma on the stack ((null))
+ drivers/media/rc/iguanair.c:276 iguanair_receiver() error: doing dma on the stack ((null))

vim +276 drivers/media/rc/iguanair.c
   260	
   261		if (len > 5 && ir->version[0] >= 4)
   262			ir->cycle_overhead = response.data[1];
   263	
   264	out:
   265		return rc;
   266	}
   267	
   268	static int iguanair_receiver(struct iguanair *ir, bool enable)
   269	{
   270		struct packet packet = { 0, DIR_OUT, enable ?
   271					CMD_RECEIVER_ON : CMD_RECEIVER_OFF };
   272		int rc;
   273	
   274		INIT_COMPLETION(ir->completion);
   275	
 > 276		rc = iguanair_send(ir, &packet, sizeof(packet), NULL, NULL);
   277		if (rc)
   278			return rc;
   279	
   280		wait_for_completion_timeout(&ir->completion, TIMEOUT);
   281	
   282		return 0;
   283	}
   284	

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu, Yuanhan Liu                              Intel Corporation

             reply	other threads:[~2012-09-26 17:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-26 17:01 Fengguang Wu [this message]
2012-09-27  8:58 ` drivers/media/rc/iguanair.c:276 iguanair_receiver() error: doing dma on the stack ((null)) Sean Young

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=20120926170104.GC25467@localhost \
    --to=fengguang.wu@intel.com \
    --cc=kernel-janitors@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.