On 3/4/22 10:51 PM, Keith Busch wrote:
On Fri, Mar 04, 2022 at 04:54:07PM +0800, zhenwei pi wrote:
+        smart->u.nvme.temperature = le16_to_cpu(log.temperature);

The 'temperature' offset is not properly aligned, so I think you need to
use an unaligned le accessor like 'stw_le_p()'.


Thanks, I missed this point, and I sent a v2 patch named '[PATCH v2 RESEND] qga: Introduce disk smart'.

--
zhenwei pi

Reply via email to