re: [media] exynos4-is: Add the FIMC-IS ISP capture DMA driver

2014-05-08 Thread Dan Carpenter
} regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[linuxtv-samsung:for-v3.16 45/81] drivers/media/dvb-frontends/si2168.c:47 si2168_cmd_execute() warn: add some parenthesis here?

2014-05-05 Thread Dan Carpenter
tree: git://linuxtv.org/snawrocki/samsung.git for-v3.16 head: 13b46c7a03adbcc347b77a13ed27066bc92d515c commit: 192292403147877c7d5f737a3cc751ded397aef7 [45/81] [media] em28xx: add [2013:025f] PCTV tripleStick (292e) drivers/media/dvb-frontends/si2168.c:47 si2168_cmd_execute() warn: add some

[patch v3] [media] em28xx-cards: fix indenting in probe()

2014-04-30 Thread Dan Carpenter
There was a mix of 4 space and tab indenting here which was confusing. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- v3: Just fix all the surrounding indents as well. v2: At first I thought the code was buggy and was missing curly braces but it was just the indenting which

[PATCH v2] radio-bcm2048.c: fix wrong overflow check

2014-04-22 Thread Dan Carpenter
From: Pali Rohár pali.ro...@gmail.com This patch fixes an off by one check in bcm2048_set_region(). Reported-by: Dan Carpenter dan.carpen...@oracle.com Signed-off-by: Pali Rohár pali.ro...@gmail.com Signed-off-by: Pavel Machek pa...@ucw.cz Signed-off-by: Dan Carpenter dan.carpen...@oracle.com

Re: [PATCH] radio-bcm2048.c: fix wrong overflow check

2014-04-22 Thread Dan Carpenter
On Tue, Apr 22, 2014 at 11:38:36AM +0200, Pavel Machek wrote: Feel free to resubmit the patch yourself. No problem. Happy to help. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More

[PATCH v3] [media] radio-bcm2048: fix wrong overflow check

2014-04-22 Thread Dan Carpenter
From: Pali Rohár pali.ro...@gmail.com This patch fixes an off by one check in bcm2048_set_region(). Reported-by: Dan Carpenter dan.carpen...@oracle.com Signed-off-by: Pali Rohár pali.ro...@gmail.com Signed-off-by: Pavel Machek pa...@ucw.cz Signed-off-by: Dan Carpenter dan.carpen...@oracle.com

Re: [media] coda: update CODA7541 to firmware 1.4.50

2014-04-11 Thread Dan Carpenter
What ever happened with this? regards, dan carpenter On Wed, Nov 06, 2013 at 07:13:43PM +0300, Dan Carpenter wrote: Hello Philipp Zabel, This is a semi-automatic email about new static checker warnings. The patch 5677e3b04d3b: [media] coda: update CODA7541 to firmware 1.4.50 from Jun 21

Re: [PATCH 2/2] staging: media: omap24xx: fix up a checkpatch.pl warning

2014-04-10 Thread Dan Carpenter
The two subjects are really close to being the same. You should choose better subjects. Like: [PATCH 2/2] staging: media: omap24xx: use pr_info() instead of KERN_INFO (All the checkpatch.pl people use the exact same subject for everything though, so you're not alone in this). regards, dan

Re: [PATCH 2/2] staging: media: omap24xx: fix up a checkpatch.pl warning

2014-04-10 Thread Dan Carpenter
a patch for a single style issue in the staging tree. All newbies... Hoping to be back with more substantial contributions soon. Yeah, I know about eudyptula. No worries. Newbies are welcome in staging. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux

Re: [media] V4L: Add driver for S3C24XX/S3C64XX SoC series camera interface

2014-04-04 Thread Dan Carpenter
Whatever happened with this btw? Also are you sure we don't need a second check after line 457? regards, dan carpenter On Tue, Aug 27, 2013 at 04:26:07PM +0200, Sylwester Nawrocki wrote: On 08/27/2013 04:19 PM, Dan Carpenter wrote: On Sun, Aug 25, 2013 at 02:23:18PM +0200, Sylwester Nawrocki

Re: [PATCH] staging: lirc: fix NULL pointer dereference

2014-04-02 Thread Dan Carpenter
, +__func__); It should be pr_err() or something. But actually ir can't be NULL so just delete the whole condition. return -EINVAL; } regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message

Re: [PATCH] staging: lirc: remove redundant NULL check in unregister_from_lirc()

2014-04-02 Thread Dan Carpenter
On Wed, Apr 02, 2014 at 02:49:03AM -0700, Daeseok Youn wrote: ir is already checked before calling unregister_from_lirc(). Reviewed-by: Dan Carpenter dan.carpen...@oracle.com regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body

[patch] [media] dvb-core: check -msg_len for diseqc_send_master_cmd()

2014-04-01 Thread Dan Carpenter
. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com Reviewed-by: Antti Palosaari cr...@iki.fi --- This is a static checker fix and I haven't tested it but the security implications are quite bad so we should fix this. diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core

Re: [patch] [media] dvb-core: check -msg_len for diseqc_send_master_cmd()

2014-04-01 Thread Dan Carpenter
Oops. I send this to Mauro's old email address. Sorry about that. regards, dan carpenter On Tue, Apr 01, 2014 at 05:38:07PM +0300, Dan Carpenter wrote: I'd like to send this patch except that it breaks cx24116_send_diseqc_msg(). The cx24116 driver accepts -msg_len values up to 24

[patch] [media] av7110: fix confusing indenting

2014-03-28 Thread Dan Carpenter
The else statement here is not aligned with the correct if statement. I think the code works as intended and it's just the indenting which is wrong. Also kernel style says we should use curly braces here so I have added those. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- This patch

Re: [patch v2] [patch] [media] em28xx-cards: remove a wrong indent level

2014-03-07 Thread Dan Carpenter
On Fri, Mar 07, 2014 at 05:46:28PM +0100, Frank Schäfer wrote: Am 05.03.2014 12:09, schrieb Dan Carpenter: This code is correct but the indenting is wrong and triggers a static checker warning add curly braces?. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- v2: in v1 I

[linuxtv-media:master 463/499] drivers/media/dvb-frontends/drx39xyj/drxj.c:20803 drx_ctrl_u_code() warn: variable dereferenced before check 'mc_info' (see line 20800)

2014-03-05 Thread Dan Carpenter
Hi Mauro, FYI, there are new smatch warnings show up in tree: git://linuxtv.org/media_tree.git master head: 59432be1c7fbf2a4f608850855ff649bee0f7b3b commit: b240eacdd536bac23c9d48dfc3d527ed6870ddad [463/499] [media] drx-j: get rid of drx_driver.c New smatch warnings:

[linuxtv-media:master 467/499] drivers/media/dvb-frontends/drx39xyj/drxj.c:20041 drxj_close() warn: variable dereferenced before check 'demod' (see line 20036)

2014-03-05 Thread Dan Carpenter
Hi Mauro, FYI, there are new smatch warnings show up in tree: git://linuxtv.org/media_tree.git master head: 59432be1c7fbf2a4f608850855ff649bee0f7b3b commit: b78359a6894ac3451bec3fde5d0499fba87b8b67 [467/499] [media] drx-j: get rid of the remaining drx generic functions New smatch warnings:

[patch v2] [patch] [media] em28xx-cards: remove a wrong indent level

2014-03-05 Thread Dan Carpenter
This code is correct but the indenting is wrong and triggers a static checker warning add curly braces?. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- v2: in v1 I added curly braces. diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx-cards.c index

[patch] [media] av7110_hw: fix a sanity check in av7110_fw_cmd()

2014-03-01 Thread Dan Carpenter
ARRAY_SIZE(buf) (8 elements) was intended instead of sizeof(buf) (16 bytes). But this is just a sanity check and the callers always pass valid values so this doesn't cause a problem. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/pci/ttpci/av7110_hw.c b

[patch] [media] ddbridge: remove unneeded an NULL check

2014-03-01 Thread Dan Carpenter
intput-fe can't be NULL because if demod_attach_drxk() fails to allocate it, then we would have return an error code. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c index 9375f30d9a81

Re: [patch] [media] em28xx-cards: don't print a misleading message

2014-02-24 Thread Dan Carpenter
Thank you so much for the review. I should have noticed that myself... I will send a patch to correct the indenting instead. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info

[patch v2] [media] stv090x: remove indent levels in stv090x_get_coldlock()

2014-02-21 Thread Dan Carpenter
reviewed this code for some time to see if something else was intended, but have concluded that it was simply an oversight and should be removed. Removing this duplicative check gains us an third indent level. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- v2: add the returns

Re: [patch] [media] stv090x: remove indent levels

2014-02-20 Thread Dan Carpenter
Guys, what Manu is saying is purest nonsense. The lock variable is a stack variable, it's not a demodulator Read-modify-Write register. The implications of changing if (!lock) to if (lock) are simple and obvious. He's not reviewing patches, he's just NAKing them. It's not helpful. regards, dan

Re: [patch] [media] stv090x: remove indent levels

2014-02-20 Thread Dan Carpenter
On Thu, Feb 20, 2014 at 11:24:21AM +0100, Hans Verkuil wrote: Hi Dan, This can be improved even more: Sure. Thanks. I will send v2 tomorrow. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord

Re: [patch] [media] stv090x: remove indent levels

2014-02-18 Thread Dan Carpenter
On Tue, Feb 18, 2014 at 09:25:36AM +0530, Manu Abraham wrote: Hi Dan, On Thu, Feb 6, 2014 at 2:58 PM, Dan Carpenter dan.carpen...@oracle.com wrote: 1) We can flip the if (!lock) check to if (lock) return lock; and then remove a big chunk of indenting. 2) There is a redundant

[patch] [media] gspca_stv06xx: remove an unneeded check

2014-02-18 Thread Dan Carpenter
err is zero here so we don't need to check again. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c b/drivers/media/usb/gspca/stv06xx/stv06xx_vv6410.c index bf3e5c317a26..e60cbb3aa609 100644 --- a/drivers/media/usb/gspca/stv06xx

Re: [patch] [media] stv090x: remove indent levels

2014-02-18 Thread Dan Carpenter
On Wed, Feb 19, 2014 at 10:52:32AM +0530, Manu Abraham wrote: On Tue, Feb 18, 2014 at 2:26 PM, Dan Carpenter dan.carpen...@oracle.com wrote: On Tue, Feb 18, 2014 at 09:25:36AM +0530, Manu Abraham wrote: Hi Dan, On Thu, Feb 6, 2014 at 2:58 PM, Dan Carpenter dan.carpen...@oracle.com

[patch] [media] em28xx-cards: don't print a misleading message

2014-02-17 Thread Dan Carpenter
There were some missing curly braces so it always says that the transfer mode changed even if it didn't. Also the indenting uses spaces instead of tabs. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/usb/em28xx/em28xx-cards.c b/drivers/media/usb/em28xx/em28xx

[patch] [media] stv0900: remove an unneeded check

2014-02-06 Thread Dan Carpenter
No need to check lock twice here. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/dvb-frontends/stv0900_sw.c b/drivers/media/dvb-frontends/stv0900_sw.c index 0a40edfad739..4ce1d260b3eb 100644 --- a/drivers/media/dvb-frontends/stv0900_sw.c +++ b/drivers/media/dvb

[patch] [media] stv090x: remove indent levels

2014-02-06 Thread Dan Carpenter
1) We can flip the if (!lock) check to if (lock) return lock; and then remove a big chunk of indenting. 2) There is a redundant if (!lock) which we can remove since we already know that lock is zero. This removes another indent level. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com

[patch] [media] dvb-frontends: decimal vs hex typo in ChannelConfiguration()

2014-02-05 Thread Dan Carpenter
From the context this should be hex 0x80 instead of decimal 80. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- Untested. diff --git a/drivers/media/dvb-frontends/tda18271c2dd.c b/drivers/media/dvb-frontends/tda18271c2dd.c index 2c54586ac07f..de0a1c110972 100644 --- a/drivers/media

[patch] [media] tda10071: remove a duplicative test

2014-01-30 Thread Dan Carpenter
ret is an error code here, we already tested that. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/dvb-frontends/tda10071.c b/drivers/media/dvb-frontends/tda10071.c index 8ad3a57cf640..a76df29c4973 100644 --- a/drivers/media/dvb-frontends/tda10071.c +++ b

re: [media] gspca - topro: New subdriver for Topro webcams

2014-01-30 Thread Dan Carpenter
break; 4681 } 4682 } regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[linuxtv-media:master 499/499] drivers/media/rc/rc-main.c:1201 rc_register_device() warn: inconsistent returns mutex:dev-lock: locked (1107 [(-12)]) unlocked (1077 [(-22)], 1083 [(-22)], 1186 [0], 1

2014-01-15 Thread Dan Carpenter
Hi Mauro, FYI, there are new smatch warnings show up in tree: git://linuxtv.org/media_tree.git master head: 587d1b06e07b4a079453c74ba9edf17d21931049 commit: 587d1b06e07b4a079453c74ba9edf17d21931049 [499/499] [media] rc-core: reuse device numbers drivers/media/rc/rc-main.c:1201

Re: [kbuild-all] [linuxtv-media:master 499/499] drivers/media/i2c/s5k5baf.c:362:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t'

2014-01-08 Thread Dan Carpenter
by the firmware? regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

re: [media] Add driver for Samsung S5K5BAF camera sensor

2014-01-08 Thread Dan Carpenter
if (fw == NULL) ^^ Check. 555 return NULL; 556 regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

re: [media] Add driver for Samsung S5K5BAF camera sensor

2014-01-08 Thread Dan Carpenter
) ^^^ This would be cleaner if it were if (on == state-power) 1044 goto out; 1045 1046 if (on) { regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info

Re: [media] Add driver for Samsung S5K5BAF camera sensor

2014-01-08 Thread Dan Carpenter
On Wed, Jan 08, 2014 at 12:58:35PM +0100, Andrzej Hajda wrote: On 01/08/2014 10:58 AM, Dan Carpenter wrote: Hello Andrzej Hajda, The patch 7d459937dc09: [media] Add driver for Samsung S5K5BAF camera sensor from Dec 5, 2013, leads to the following static checker warning

[patch] [media] staging: sn9c102: add a USB depend to the Kconfig

2014-01-02 Thread Dan Carpenter
This driver won't link without USB support. Reported-by: Jim Davis jim.ep...@gmail.com Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/media/sn9c102/Kconfig b/drivers/staging/media/sn9c102/Kconfig index d8ae2354b626..3ab9c81173da 100644 --- a/drivers/staging

[patch] [media] i2c: lm3560: missing unlocks on error in lm3560_set_ctrl()

2013-12-16 Thread Dan Carpenter
There are several error paths which don't unlock on error. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/i2c/lm3560.c b/drivers/media/i2c/lm3560.c index ab5857d66f2d..fd96cfd6a9ec 100644 --- a/drivers/media/i2c/lm3560.c +++ b/drivers/media/i2c/lm3560.c

[media] v4l: omap4iss: Restore irq flags correctly in omap4iss_video_buffer_next()

2013-12-16 Thread Dan Carpenter
and the bug doesn't cause problems in real life. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/media/omap4iss/iss_video.c b/drivers/staging/media/omap4iss/iss_video.c index 766491e6a8d0..c9b71c750b15 100644 --- a/drivers/staging/media/omap4iss/iss_video.c +++ b/drivers

[patch] [media] v4l: omap4iss: use snprintf() to make smatch happy

2013-12-16 Thread Dan Carpenter
is a no-op. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/media/omap4iss/iss_csi2.c b/drivers/staging/media/omap4iss/iss_csi2.c index 0ee8381c738d..7ab05126be5d 100644 --- a/drivers/staging/media/omap4iss/iss_csi2.c +++ b/drivers/staging/media/omap4iss

re: V4L/DVB (4922): Add usbvision driver

2013-12-04 Thread Dan Carpenter
scratch_get(usbvision, strip_data, strip_len); ^ Then we scribble on the stack here because strip_data only has USBVISION_STRIP_LEN_MAX bytes. It is a security problem. regards, dan carpenter -- To unsubscribe from this list: send the line

Re: [PATCH v2] drivers: staging: media: go7007: go7007-usb.c use pr_*() instead of dev_*() before 'go' initialized in go7007_usb_probe()

2013-11-27 Thread Dan Carpenter
merging and branches. Is it still better/suitable/possible to sync some bug fix patches from staging brach to next brach? next syncs with everyone once a day. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord

re: [media] dib8000: enhancement

2013-11-26 Thread Dan Carpenter
state-status = FE_STATUS_TUNE_FAILED; 3183 } 3184 break; 3185 regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [patch] [media] cx18: check for allocation failure in cx18_read_eeprom()

2013-11-22 Thread Dan Carpenter
Btw, the MAINTAINERS file says the ivtv list is moderated but actually it's a subscriber only list... Sucks. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http

[patch] [media] af9035: unlock on error in af9035_i2c_master_xfer()

2013-11-21 Thread Dan Carpenter
We introduced a couple new error paths which are missing unlocks. Fixes: 7760e148350b ('[media] af9035: Don't use dynamic static allocation') Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index

[patch] [media] cx18: check for allocation failure in cx18_read_eeprom()

2013-11-21 Thread Dan Carpenter
It upsets static checkers when we don't check for allocation failure. I moved the memset() of tv earlier so we don't use uninitialized data on error. Fixes: 1d212cf0c2d8 ('[media] cx18: struct i2c_client is too big for stack') Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git

[patch] [media] cxusb: unlock on error in cxusb_i2c_xfer()

2013-11-21 Thread Dan Carpenter
We recently introduced some new error paths which are missing their unlocks. Fixes: 64f7ef8afbf8 ('[media] cxusb: Don't use dynamic static allocation') Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/usb/dvb-usb/cxusb.c b/drivers/media/usb/dvb-usb/cxusb.c index

[patch] [media] dw2102: some missing unlocks on error

2013-11-21 Thread Dan Carpenter
We recently introduced some new error paths but the unlocks are missing. Fixes: 0065a79a8698 ('[media] dw2102: Don't use dynamic static allocation') Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/usb/dvb-usb/dw2102.c b/drivers/media/usb/dvb-usb/dw2102.c index

re: [media] media: i2c: add driver for dual LED Flash, lm3560

2013-11-13 Thread Dan Carpenter
. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCHv2] staging: go7007: fix use of uninitialised pointer

2013-11-11 Thread Dan Carpenter
On Mon, Nov 11, 2013 at 12:46:24PM +0100, Michal Nazarewicz wrote: go variable is initialised only after the switch case so it cannot be dereferenced prior to that happening. Signed-off-by: Michal Nazarewicz min...@mina86.com Looks good. Thanks. :) regards, dan carpenter

Re: [PATCH 1/7] staging: go7007: fix use of uninitialised pointer

2013-11-10 Thread Dan Carpenter
There are 3 other uses before go gets initialized. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[patch] [media] exynos4-is: cleanup a define

2013-11-08 Thread Dan Carpenter
should actually be (0xf 28). Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/platform/exynos4-is/mipi-csis.c b/drivers/media/platform/exynos4-is/mipi-csis.c index 9fc2af6..31dfc50 100644 --- a/drivers/media/platform/exynos4-is/mipi-csis.c +++ b/drivers/media/platform

[patch] [media] v4l: ti-vpe: checking for IS_ERR() instead of NULL

2013-11-08 Thread Dan Carpenter
devm_ioremap() returns NULL on error, it doesn't return an ERR_PTR. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index 4e58069..e163466 100644 --- a/drivers/media/platform/ti-vpe/vpe.c +++ b/drivers

re: [media] coda: update CODA7541 to firmware 1.4.50

2013-11-06 Thread Dan Carpenter
if (ctx-codec-src_fourcc == V4L2_PIX_FMT_H264 ^^ Patch introduces a new unchecked dereference. 1531 dev-devtype-product != CODA_DX6) 1532 ctx-internal_frames[i].size += ysize/4; regards, dan carpenter

re: staging: media: Use dev_err() instead of pr_err()

2013-11-05 Thread Dan Carpenter
; There are several other uses of go before it has been initialized. Probably you will just want to change these back to pr_info(). Some of the messages are not very useful like: dev_info(go-dev, Sensoray 2250 found\n); You can delete that one. regards, dan carpenter -- To unsubscribe from

re: [media] cx23885-dvb: use a better approach to hook set_frontend

2013-11-01 Thread Dan Carpenter
cx23885_set_frontend_hook(port, fe0-dvb.frontend); ^ Dereference. 1151 break; regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord

[patch -next] [media] cx231xx: use after free on error path in probe

2013-11-01 Thread Dan Carpenter
We dereference dev after it has already been freed. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/usb/cx231xx/cx231xx-cards.c b/drivers/media/usb/cx231xx/cx231xx-cards.c index e9d017b..528cce9 100644 --- a/drivers/media/usb/cx231xx/cx231xx-cards.c +++ b

Re: [GIT PULL FOR v3.13] OMAP4 ISS driver

2013-10-15 Thread Dan Carpenter
. Yeah... Pull request get far less review. I never bother reviewing them, honestly. I feel bad for that. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http

Re: [PATCH 2/6] v4l: omap4iss: Add support for OMAP4 camera interface - Video devices

2013-10-04 Thread Dan Carpenter
: media_entity_pipeline_stop(video-video.entity); err_media_entity_pipeline_start: if (video-iss-pdata-set_constraints) video-iss-pdata-set_constraints(video-iss, false); video-queue = NULL; mutex_unlock(video-stream_lock); return ret; } regards, dan carpenter

re: [media] cx23885-dvb: use a better approach to hook set_frontend

2013-09-02 Thread Dan Carpenter
CX23885_BOARD_HAUPPAUGE_HVR1255: regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[patch v2] [media] mx3-camera: locking cleanup in mx3_videobuf_queue()

2013-08-29 Thread Dan Carpenter
spin_lock_irq(). It's called from __enqueue_in_driver(). Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- v2: The first version changed everything to irq_save/restore() but that wasn't right because we wanted IRQs enabled and not simply restored. diff --git a/drivers/media/platform

Re: [media] V4L: Add driver for S3C24XX/S3C64XX SoC series camera interface

2013-08-27 Thread Dan Carpenter
On Sun, Aug 25, 2013 at 02:23:18PM +0200, Sylwester Nawrocki wrote: On 08/23/2013 11:46 AM, Dan Carpenter wrote: [ Going through some old warnings... ] Hello Sylwester Nawrocki, This is a semi-automatic email about new static checker warnings. The patch babde1c243b2: [media] V4L: Add

[patch] [media] s5k6aa: off by one in s5k6aa_enum_frame_interval()

2013-08-23 Thread Dan Carpenter
The check is off by one so we could read one space past the end of the array. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/i2c/s5k6aa.c b/drivers/media/i2c/s5k6aa.c index 789c02a..629a5cd 100644 --- a/drivers/media/i2c/s5k6aa.c +++ b/drivers/media/i2c/s5k6aa.c

[patch] [media] i2c/ov9650: off by one in ov965x_enum_frame_sizes()

2013-08-23 Thread Dan Carpenter
The should be = otherwise we read one space beyond the end of the array. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/i2c/ov9650.c b/drivers/media/i2c/ov9650.c index 1dbb811..4da90c6 100644 --- a/drivers/media/i2c/ov9650.c +++ b/drivers/media/i2c/ov9650.c

re: [media] s5p-csis: Add support for non-image data packets capture

2013-08-23 Thread Dan Carpenter
offset = S5PCSIS_PKTDATA_EVEN; regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[patch] [media] exynos4-is: print error message on timeout

2013-08-23 Thread Dan Carpenter
There is a stray '!' character so the error message never gets printed. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- Static checker stuff. Not tested. diff --git a/drivers/media/platform/exynos4-is/fimc-is-regs.c b/drivers/media/platform/exynos4-is/fimc-is-regs.c index 63c68ec

[patch] [media] s3c-camif: forever loop in camif_hw_set_source_format()

2013-08-23 Thread Dan Carpenter
Because i is unsigned then i-- = 0 is always true. If we don't find what we are looking for then we loop forever. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- Why do we count backwards anyway? Counting upwards is easier. diff --git a/drivers/media/platform/s3c-camif/camif-regs.c

[patch] [media] mx3-camera: locking typo in mx3_videobuf_queue()

2013-08-23 Thread Dan Carpenter
There is a return in the middle where we haven't restored the IRQs to their original state. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c index 1047e3e..4bae910 100644

re: [media] V4L: Add driver for S3C24XX/S3C64XX SoC series camera interface

2013-08-23 Thread Dan Carpenter
; ^^ Dereference. 461 } 462 463 if (fmt == NULL) ^^^ Check. 464 return -EINVAL; 465 *num_planes = 1; regards, dan carpenter

[patch] [media] sh_vou: almost forever loop in sh_vou_try_fmt_vid_out()

2013-08-23 Thread Dan Carpenter
The i part of the i ARRAY_SIZE() condition was missing. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/platform/sh_vou.c b/drivers/media/platform/sh_vou.c index 7a9c5e9..41f612c 100644 --- a/drivers/media/platform/sh_vou.c +++ b/drivers/media/platform

[patch] [media] snd_tea575x: precedence bug in fmr2_tea575x_get_pins()

2013-08-22 Thread Dan Carpenter
The | operation has higher precedence that ?: so this couldn't return both flags set at once as intended. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- Static checker stuff. Untested. diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index

Re: [PATCH] trivial: adjust code alignment

2013-08-05 Thread Dan Carpenter
the bug then we are hiding real problems and making them more difficult to find. Just drop this chunk. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

[patch] [media] bt8xx: info leak in ca_get_slot_info()

2013-07-25 Thread Dan Carpenter
p_ca_slot_info was allocated with kmalloc() so we need to clear it before passing it to the user. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/pci/bt8xx/dst_ca.c b/drivers/media/pci/bt8xx/dst_ca.c index 0e788fc..6b9dc3f 100644 --- a/drivers/media/pci/bt8xx

Re: [patch] [media] bt8xx: info leak in ca_get_slot_info()

2013-07-25 Thread Dan Carpenter
On Thu, Jul 25, 2013 at 07:29:09PM +0200, walter harms wrote: Am 25.07.2013 18:46, schrieb Dan Carpenter: p_ca_slot_info was allocated with kmalloc() so we need to clear it before passing it to the user. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers

[patch] [media] staging: lirc: clean error handling in probe()

2013-06-26 Thread Dan Carpenter
I have reorganized the error handling into a simpler and more canonical format. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/media/lirc/lirc_igorplugusb.c b/drivers/staging/media/lirc/lirc_igorplugusb.c index 2faa391..4cf3933 100644 --- a/drivers/staging

Re: [patch] [media] staging: lirc: clean error handling in probe()

2013-06-26 Thread Dan Carpenter
On Wed, Jun 26, 2013 at 11:00:40AM +0300, Andy Shevchenko wrote: On Wed, 2013-06-26 at 10:53 +0300, Dan Carpenter wrote: I have reorganized the error handling into a simpler and more canonical format. Since you reorganize error handling, might be worth to convert it to devm_*? If you

Re: [PATCH v2] staging: lirc: clean error handling in probe()

2013-06-26 Thread Dan Carpenter
On Wed, Jun 26, 2013 at 05:37:36PM +0300, Andy Shevchenko wrote: From: Dan Carpenter dan.carpen...@oracle.com We have reorganized the error handling into a simpler and more canonical format. Additionally we removed extra empty lines, switched to devm_kzalloc(), and substitute 'minor

Re: [PATCH v2] staging: lirc: clean error handling in probe()

2013-06-26 Thread Dan Carpenter
On Wed, Jun 26, 2013 at 06:29:12PM +0300, Andy Shevchenko wrote: On Wed, 2013-06-26 at 18:10 +0300, Dan Carpenter wrote: On Wed, Jun 26, 2013 at 05:37:36PM +0300, Andy Shevchenko wrote: From: Dan Carpenter dan.carpen...@oracle.com We have reorganized the error handling into a simpler

Re: [patch] [media] media: info leak in __media_device_enum_links()

2013-05-31 Thread Dan Carpenter
Ping? regards, dan carpenter On Sat, Apr 13, 2013 at 12:32:15PM +0300, Dan Carpenter wrote: These structs have holes and reserved struct members which aren't cleared. I've added a memset() so we don't leak stack information. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff

[patch] [media] media: info leak in media_device_enum_entities()

2013-04-21 Thread Dan Carpenter
The last part of the u_ent.name buffer isn't cleared so it still has uninitialized stack memory. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index 99b80b6..1957c0d 100644 --- a/drivers/media/media-device.c +++ b

Re: [patch] [media] media: info leak in media_device_enum_entities()

2013-04-21 Thread Dan Carpenter
On Sun, Apr 21, 2013 at 01:51:56PM +0200, walter harms wrote: Am 21.04.2013 13:10, schrieb Dan Carpenter: The last part of the u_ent.name buffer isn't cleared so it still has uninitialized stack memory. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers

Re: [PATCH 12/12] radio-si476x: Fix incorrect pointer checking

2013-04-18 Thread Dan Carpenter
duplication in si476x_radio_read_rsq_blob and si476x_radio_read_rsq_primary_blob. * Add some BUG_ON statements for function pointers that should never be NULL Signed-off-by: Andrey Smirnov andrew.smir...@gmail.com Signed-off-by: Dan Carpenter dan.carpen...@oracle.com This should be a Reported

[patch 1/2] [media] r820t: precendence bug in r820t_xtal_check()

2013-04-18 Thread Dan Carpenter
The test as written is always false. It looks like the intent was to test that the bit was not set. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index 905a106..ba033fd 100644 --- a/drivers/media/tuners/r820t.c

[patch 2/2] [media] r820t: memory leak in release()

2013-04-18 Thread Dan Carpenter
I've moved the kfree(fe-tuner_priv) one line earlier, otherwise it is a no-op. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- This is a static checker fix and I have not tested it. diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index ba033fd..36ddbf1 100644

[patch] [media] dvb-frontends: lg2160: dubious one-bit signed bitfield

2013-04-17 Thread Dan Carpenter
Sparse complains that these are dubious one-bit signed bitfields and the comment says it was intended to be 1 and 0 instead of -1 and 0. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/dvb-frontends/lg2160.h b/drivers/media/dvb-frontends/lg2160.h index a5f0368

[patch] [media] go7007: dubious one-bit signed bitfields

2013-04-17 Thread Dan Carpenter
: dubious one-bit signed bitfield Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/media/go7007/go7007-priv.h b/drivers/staging/media/go7007/go7007-priv.h index 8bde187..6e16af7 100644 --- a/drivers/staging/media/go7007/go7007-priv.h +++ b/drivers/staging/media

Re: [RFC] [media] dvb-core: check -msg_len for diseqc_send_master_cmd()

2013-04-17 Thread Dan Carpenter
Any feedback on this? I forgot to CC Steven Toth last time because he would know about the cx24116 driver. I've looked at it again and it still looks like cx24116_send_diseqc_msg() is copying garbage into the state-dsec_cmd.args[] array. regards, dan carpenter On Tue, Apr 02, 2013 at 10:51

[patch] [media] media: info leak in __media_device_enum_links()

2013-04-13 Thread Dan Carpenter
These structs have holes and reserved struct members which aren't cleared. I've added a memset() so we don't leak stack information. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index 99b80b6..450c0d1 100644

[patch] [media] radio-si476x: check different function pointers

2013-04-10 Thread Dan Carpenter
. The one place where that's not true is when we check -rds_blckcnt instead of -rsq_status. In those cases, we would want to call -rsq_status but we instead return -ENOENT. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- Please review this carefully. I don't have the hardware to test

Re: [patch] [media] dt3155v4l: unlock on error path

2013-04-09 Thread Dan Carpenter
On Tue, Apr 09, 2013 at 07:20:19AM +0200, Julia Lawall wrote: On Tue, 9 Apr 2013, Dan Carpenter wrote: We should unlock here and do some cleanup before returning. We can't actually hit this return path with the current code, so this patch is a basically a cleanup and doesn't change how

re: [media] redrat3: remove memcpys and fix unaligned memory access

2013-04-09 Thread Dan Carpenter
that it doesn't match the debug code. My main concern is that we limit the size of pktlen but then we only use it for debug output. 642 break; regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord

[patch] [media] dt3155v4l: unlock on error path

2013-04-08 Thread Dan Carpenter
We should unlock here and do some cleanup before returning. We can't actually hit this return path with the current code, so this patch is a basically a cleanup and doesn't change how the code works. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/staging/media

[RFC] [media] dvb-core: check -msg_len for diseqc_send_master_cmd()

2013-04-02 Thread Dan Carpenter
. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c index 57601c0..3d1eee6 100644 --- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c @@ -2265,7 +2265,13 @@ static int

Re: [PATCH -next] [media] go7007: fix invalid use of sizeof in go7007_usb_i2c_master_xfer()

2013-03-26 Thread Dan Carpenter
this code is doing. Instead of sizeof(*buf) it should be something like buflen, msg[i].len, msg[i].len + 1 or msg[i].len + 3. I'm not sure which is correct here or what it's doing, sorry. regards, dan carpenter -- To unsubscribe from this list: send the line unsubscribe linux-media in the body

Re: [PATCH -next] [media] go7007: fix invalid use of sizeof in go7007_usb_i2c_master_xfer()

2013-03-26 Thread Dan Carpenter
On Tue, Mar 26, 2013 at 10:04:15AM +0300, Dan Carpenter wrote: On Tue, Mar 26, 2013 at 02:42:47PM +0800, Wei Yongjun wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn sizeof() when applied to a pointer typed expression gives the size of the pointer, not that of the pointed data

[patch] [media] mceusb: move check earlier to make smatch happy

2013-02-12 Thread Dan Carpenter
Smatch complains that cmdbuf[cmdcount - length] might go past the end of the array. It's an easy warning to silence by moving the limit check earlier. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/rc/mceusb.c b/drivers/media/rc/mceusb.c index bdd1ed8..5b5b6e6

Re: [PATCH] MAINTAINERS: Remove Jarod Wilson and orphan LIRC drivers

2013-02-12 Thread Dan Carpenter
On Tue, Feb 12, 2013 at 01:20:36PM -0800, Joe Perches wrote: His email bounces and he hasn't done work on these sections in a couple of years. I've added him to the CC list. Can we just update MAINTAINERS with the correct email address? It's been useful to CC him on stuff. regards, dan

<    1   2   3   4   5   6   7   >