Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: pvrusb2: Fix incorrect variable used in trace message

The pvr2_trace message is reporting an error about control read
transfers, however it is using the incorrect variable write_len
instead of read_lean. Fix this by using the correct variable
read_len.

Fixes: d855497edbfb ("V4L/DVB (4228a): pvrusb2 to kernel 2.6.18")
Cc: stable@vger.kernel.org
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Colin Ian King and committed by
Hans Verkuil
be440980 d2bceb2e

+1 -1
+1 -1
drivers/media/usb/pvrusb2/pvrusb2-hdw.c
··· 3622 3622 pvr2_trace( 3623 3623 PVR2_TRACE_ERROR_LEGS, 3624 3624 "Attempted to execute %d byte control-read transfer (limit=%d)", 3625 - write_len,PVR2_CTL_BUFFSIZE); 3625 + read_len, PVR2_CTL_BUFFSIZE); 3626 3626 return -EINVAL; 3627 3627 } 3628 3628 if ((!write_len) && (!read_len)) {