diff options
| author | Axel Haslam <axelhaslam@ti.com> | 2011-05-31 09:24:30 +0100 |
|---|---|---|
| committer | Andy Green <andy.green@linaro.org> | 2011-05-31 11:05:58 +0100 |
| commit | c4cc63638ce40ca8d666b92df417d06dd6282f12 (patch) | |
| tree | 93a85a59c7e4a52745d6ceb81b2364bf98603032 /arch | |
| parent | fd27be896654c234b9a72f08031f1155679027a4 (diff) | |
KW: remoteproc: Move debug statement so rproc will be valid when dereferenced
Moved the debug print statement in omap_rproc_ioctl so that rproc will
be valid when derefenced in the log statement
Change-Id: Ib13c98b953d5254d5227a08631cea99a88c29cb1
Signed-off-by: Axel Haslam <axelhaslam@ti.com>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/plat-omap/remoteproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/remoteproc.c b/arch/arm/plat-omap/remoteproc.c index 34b32becf49..3b544bfefaf 100644 --- a/arch/arm/plat-omap/remoteproc.c +++ b/arch/arm/plat-omap/remoteproc.c @@ -320,11 +320,11 @@ static int omap_rproc_ioctl(struct inode *inode, struct file *filp, int rc = 0; struct omap_rproc *rproc = filp->private_data; - dev_info(rproc->dev, "%s\n", __func__); - if (!rproc) return -EINVAL; + dev_info(rproc->dev, "%s\n", __func__); + if (_IOC_TYPE(cmd) != RPROC_IOC_MAGIC) return -ENOTTY; if (_IOC_NR(cmd) > RPROC_IOC_MAXNR) |
