]> git.baikalelectronics.ru Git - kernel.git/commit
[media] pt3: fix device identification
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 27 Feb 2016 10:51:11 +0000 (07:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 1 Mar 2016 15:01:45 +0000 (12:01 -0300)
commit8fc39f696a99b83675e676c8b06a627c9a7af7b5
treee430379914d503ccf213f8d9d0463baa43c3c1d5
parent6929f72fb3c69ad4344ad25efacfc3572db08807
[media] pt3: fix device identification

As warned by smatch:
drivers/media/pci/pt3/pt3.c:398 pt3_attach_fe() error: strncmp() '"tc90522sat"' too small (11 vs 20)

Clearly, the logic is doing the wrong thing, as it is not comparing the strings
on the right way.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/pt3/pt3.c