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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
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()
> 	warn: integer overflows '(args->alloc.mem_size + (page_size - 1)) >>
> page_shift'
> 

You are correct, we'll send a fix shortly.
BTW which static checker did you use? we use Sparse and Smatch and they didn't catch that.

Omer
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux