Re: [PATCH v2 1/2] bitmap: Modify bitmap_set_value() to check bitmap length

2020-12-13 Thread Andy Shevchenko
On Sun, Dec 13, 2020 at 4:24 PM Syed Nayyar Waris wrote: > > Add explicit check to see if the value being written into the bitmap > does not fall outside the bitmap. > The situation that it is falling outside would never be possible in the > code because the boundaries are required to be correct b

[PATCH v2 1/2] bitmap: Modify bitmap_set_value() to check bitmap length

2020-12-12 Thread Syed Nayyar Waris
Add explicit check to see if the value being written into the bitmap does not fall outside the bitmap. The situation that it is falling outside would never be possible in the code because the boundaries are required to be correct before the function is called. The responsibility is on the caller fo