Re: [PATCH] habanalabs: Fix memory corruption in debugfs

2020-08-03 Thread Oded Gabbay
On Mon, Aug 3, 2020 at 5:36 PM Dan Carpenter wrote: > > 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: c216477363a3 ("habanalabs: add debugfs support") > Signed-off-by: Dan Carpenter > --- >

[PATCH] habanalabs: Fix memory corruption in debugfs

2020-08-03 Thread Dan Carpenter
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: c216477363a3 ("habanalabs: add debugfs support") Signed-off-by: Dan Carpenter --- drivers/misc/habanalabs/common/debugfs.c | 8 1 file changed, 4