Message ID | 1bfa8542-0bcb-eea6-0dda-d1c7ffae89f1@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c index 5832e6f..f6c21a1 100644 --- a/drivers/media/rc/redrat3.c +++ b/drivers/media/rc/redrat3.c @@ -388,7 +388,7 @@ static int redrat3_send_cmd(int cmd, struct redrat3_dev *rr3) u8 *data; int res; - data = kzalloc(sizeof(u8), GFP_KERNEL); + data = kzalloc(sizeof(*data), GFP_KERNEL); if (!data) return -ENOMEM;