mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 08:46:40 +07:00
ore: signedness bug in _sp2d_min_pg()
This for loop doesn't work correctly when "p" is unsigned. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
This commit is contained in:
parent
b8017d2957
commit
74b217d0d3
@ -203,7 +203,7 @@ static unsigned _sp2d_min_pg(struct __stripe_pages_2d *sp2d)
|
||||
|
||||
static unsigned _sp2d_max_pg(struct __stripe_pages_2d *sp2d)
|
||||
{
|
||||
unsigned p;
|
||||
int p;
|
||||
|
||||
for (p = sp2d->pages_in_unit - 1; p >= 0; --p) {
|
||||
struct __1_page_stripe *_1ps = &sp2d->_1p_stripes[p];
|
||||
|
Loading…
Reference in New Issue
Block a user