Re: [PATCH 01/10] tpm, tpm_crb: fix unaligned read of the command buffer address
From: Peter Hüwe
Date: Sat Oct 17 2015 - 22:56:43 EST
Am Freitag, 16. Oktober 2015, 20:40:20 schrieb Jarkko Sakkinen:
> + pa = ((u64) le32_to_cpu(ioread32(&priv->cca->cmd_pa_high)) << 32) +
> + (u64) le32_to_cpu(ioread32(&priv->cca->cmd_pa_low));
The canonical form would be
> + pa = ((u64) le32_to_cpu(ioread32(&priv->cca->cmd_pa_high)) << 32) |
> + (u64) le32_to_cpu(ioread32(&priv->cca->cmd_pa_low));
?
Or am I missing something?
Shall I fix-up?
Thanks,
Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/