]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (8837): dvb: fix I2C adapters name size
authorJean Delvare <khali@linux-fr.org>
Wed, 3 Sep 2008 20:12:23 +0000 (17:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 3 Sep 2008 21:37:50 +0000 (18:37 -0300)
commitd794f7df6b8bc6b84c2cbd7e542e4ed242a50aa9
tree8d713db39a3fcf60cf1a9316aba31cdf3e23e1d8
parenta92f35b65098f5e18e8cca0f84615a88496c87ef
V4L/DVB (8837): dvb: fix I2C adapters name size

Some DVB drivers are incorrectly assuming that the size of
i2c_adapter.name is I2C_NAME_SIZE.  Here's a fix.

Also change strncpy to strlcpy, as the former is error-prone (and was
indeed incorrectly used.)

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Uwe Bugla <uwe.bugla@gmx.de>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/b2c2/flexcop-i2c.c
drivers/media/dvb/frontends/cx24123.c
drivers/media/dvb/frontends/s5h1420.c