]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: Fix memory corruption in debugfs
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 3 Aug 2020 14:36:36 +0000 (17:36 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Sat, 22 Aug 2020 09:47:57 +0000 (12:47 +0300)
commit93bc543ab74bff08200dc3df2cfa1f5ecfe0e096
treecb674ee95f62162e10a7d2f05eff8bc9cf1eec1d
parent0a9457244d90c3b8737f1d41217712a5101cc25e
habanalabs: Fix memory corruption in debugfs

This has to be a long instead of a u32 because we write a long value.
On 64 bit systems, this will cause memory corruption.

Fixes: f302173e2717 ("habanalabs: add debugfs support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/common/debugfs.c