Re: [PATCH] crypto: qat: fix double free in qat_uclo_create_batch_init_list

2020-07-23 Thread Herbert Xu
On Mon, Jul 13, 2020 at 07:06:34AM -0700, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis flags this error > > qat_uclo.c:297:3: warning: Attempt to free released memory > [unix.Malloc] > kfree(*init_tab_base); > ^ > > When

Re: [PATCH] crypto: qat: fix double free in qat_uclo_create_batch_init_list

2020-07-13 Thread Greg KH
On Mon, Jul 13, 2020 at 07:06:34AM -0700, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis flags this error > > qat_uclo.c:297:3: warning: Attempt to free released memory > [unix.Malloc] > kfree(*init_tab_base); > ^ > > When

[PATCH] crypto: qat: fix double free in qat_uclo_create_batch_init_list

2020-07-13 Thread trix
From: Tom Rix clang static analysis flags this error qat_uclo.c:297:3: warning: Attempt to free released memory [unix.Malloc] kfree(*init_tab_base); ^ When input *init_tab_base is null, the function allocates memory for the head of the list.