RE: [bug report] habanalabs: add virtual memory and MMU modules

2019-03-05 Thread Omer Shpigelman
From: Dan Carpenter Sent: Tuesday, 5 March 2019 8:40 > Hello Omer Shpigelman, > > The patch 0feaf86d4e69: "habanalabs: add virtual memory and MMU > modules" from Feb 16, 2019, leads to the following static checker > warning: > > drivers/misc/habanalabs/memory.c:96 alloc_device_memory() >

Re: [bug report] habanalabs: add virtual memory and MMU modules

2019-03-05 Thread Dan Carpenter
On Tue, Mar 05, 2019 at 08:34:50AM +, Omer Shpigelman wrote: > From: Dan Carpenter > Sent: Tuesday, 5 March 2019 8:40 > > Hello Omer Shpigelman, > > > > The patch 0feaf86d4e69: "habanalabs: add virtual memory and MMU > > modules" from Feb 16, 2019, leads to the following static checker > > wa

[bug report] habanalabs: add virtual memory and MMU modules

2019-03-04 Thread Dan Carpenter
Hello Omer Shpigelman, The patch 0feaf86d4e69: "habanalabs: add virtual memory and MMU modules" from Feb 16, 2019, leads to the following static checker warning: drivers/misc/habanalabs/memory.c:96 alloc_device_memory() warn: integer overflows '(args->alloc.mem_size + (page_size -