summaryrefslogtreecommitdiff
path: root/drivers/media/common/cypress_firmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/common/cypress_firmware.c')
-rw-r--r--drivers/media/common/cypress_firmware.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/cypress_firmware.c b/drivers/media/common/cypress_firmware.c
index bfe47bc5f716..8895158c1962 100644
--- a/drivers/media/common/cypress_firmware.c
+++ b/drivers/media/common/cypress_firmware.c
@@ -74,7 +74,7 @@ int cypress_load_firmware(struct usb_device *udev,
struct hexline *hx;
int ret, pos = 0;
- hx = kmalloc(sizeof(struct hexline), GFP_KERNEL);
+ hx = kmalloc(sizeof(*hx), GFP_KERNEL);
if (!hx)
return -ENOMEM;