Re: [PATCH] net/sfc: fix the argument to sizeof for unit cache

2022-02-18 Thread Ferruh Yigit
On 2/18/2022 2:43 PM, Andrew Rybchenko wrote: On 2/18/22 17:38, Ferruh Yigit wrote: On 12/21/2021 6:41 AM, Weiguo Li wrote: The size of unit cache should be sizeof(**cache) instead of sizeof(*cache). Memory reallocation is inadequate by sizeof(*cache) for the platform whose size of pointer is 3

Re: [PATCH] net/sfc: fix the argument to sizeof for unit cache

2022-02-18 Thread Andrew Rybchenko
On 2/18/22 17:38, Ferruh Yigit wrote: On 12/21/2021 6:41 AM, Weiguo Li wrote: The size of unit cache should be sizeof(**cache) instead of sizeof(*cache). Memory reallocation is inadequate by sizeof(*cache) for the platform whose size of pointer is 32-bits. Found by coccinelle (see https://coccin

Re: [PATCH] net/sfc: fix the argument to sizeof for unit cache

2022-02-18 Thread Ferruh Yigit
On 12/21/2021 6:41 AM, Weiguo Li wrote: The size of unit cache should be sizeof(**cache) instead of sizeof(*cache). Memory reallocation is inadequate by sizeof(*cache) for the platform whose size of pointer is 32-bits. Found by coccinelle (see https://coccinelle.gitlabpages.inria.fr/website) scri

[PATCH] net/sfc: fix the argument to sizeof for unit cache

2021-12-20 Thread Weiguo Li
The size of unit cache should be sizeof(**cache) instead of sizeof(*cache). Memory reallocation is inadequate by sizeof(*cache) for the platform whose size of pointer is 32-bits. Found by coccinelle (see https://coccinelle.gitlabpages.inria.fr/website) script. Fixes: 63abf8d29225 ("net/sfc: suppor