Message ID | 200908262029.11579.jareguero@telefonica.net (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff -r 57c666b8ef50 linux/drivers/media/dvb/dvb-usb/af9015.c --- a/linux/drivers/media/dvb/dvb-usb/af9015.c Wed Aug 26 08:34:16 2009 +0200 +++ b/linux/drivers/media/dvb/dvb-usb/af9015.c Wed Aug 26 20:23:07 2009 +0200 @@ -108,7 +108,7 @@ } /* write requested */ - if (write) { + if (write && req->data_len) { memcpy(&buf[8], req->data, req->data_len); msg_len += req->data_len; }