mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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: d855497edb ("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>
This commit is contained in:
committed by
Hans Verkuil
parent
d2bceb2e20
commit
be440980ea
@@ -3622,7 +3622,7 @@ static int pvr2_send_request_ex(struct pvr2_hdw *hdw,
|
||||
pvr2_trace(
|
||||
PVR2_TRACE_ERROR_LEGS,
|
||||
"Attempted to execute %d byte control-read transfer (limit=%d)",
|
||||
write_len,PVR2_CTL_BUFFSIZE);
|
||||
read_len, PVR2_CTL_BUFFSIZE);
|
||||
return -EINVAL;
|
||||
}
|
||||
if ((!write_len) && (!read_len)) {
|
||||
|
||||
Reference in New Issue
Block a user