]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[media] saa7134: Fix bytesperline not being set correctly for planar formats
authorHans de Goede <hdegoede@redhat.com>
Sun, 14 Feb 2016 19:51:37 +0000 (17:51 -0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 18 Apr 2016 12:50:37 +0000 (08:50 -0400)
commit2ecb9996d53c218a536ad796b766c2c1cd06c3c0
treeb1aeaaa83e9e46c6394198e5ae52e890eb90bad1
parent3aae1bb07b59d62e9ea4b1883d787091070ffe1e
[media] saa7134: Fix bytesperline not being set correctly for planar formats

[ Upstream commit 3e71da19f9dc22e39a755d6ae9678661abb66adc ]

bytesperline should be the bytesperline for the first plane for planar
formats, not that of all planes combined.

This fixes a crash in xawtv caused by the wrong bpl.

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1305389
Reported-and-tested-by: Stas Sergeev <stsp@list.ru>
Cc: stable@vger.kernel.org
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/media/pci/saa7134/saa7134-video.c