Re: [PATCH] mm/shmem: fix uninitialized scalar variable

2025-03-01 Thread Zi Yan
On 1 Mar 2025, at 11:57, Ethan Carter Edwards wrote: > int entry_order has the possibility of being uninitialized when > returning. Initializing it to zero at declaration appeases coverity and > reduces risk of returning nonsense. How come? After entry_order is declared, for (;;) begins. The fir

[PATCH] mm/shmem: fix uninitialized scalar variable

2025-03-01 Thread Ethan Carter Edwards
int entry_order has the possibility of being uninitialized when returning. Initializing it to zero at declaration appeases coverity and reduces risk of returning nonsense. Closes: https://scan7.scan.coverity.com/#/project-view/53698/11354?selectedIssue=1637878 Fixes: 6dbc440b79b6 ("mm/shmem: use