Skip to content

Commit

Permalink
V4L/DVB (7971): usb: unaligned
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Al Viro authored and Mauro Carvalho Chehab committed Jun 5, 2008
1 parent a954b66 commit 637007f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-usb/dvb-usb-firmware.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ int dvb_usb_get_hexline(const struct firmware *fw, struct hexline *hx,
if ((*pos + hx->len + 4) >= fw->size)
return -EINVAL;

hx->addr = le16_to_cpu( *((u16 *) &b[1]) );
hx->addr = b[1] | (b[2] << 8);
hx->type = b[3];

if (hx->type == 0x04) {
Expand Down

0 comments on commit 637007f

Please sign in to comment.