Re: [PATCH] cifs: check pointer before freeing

2021-01-05 Thread Steve French
merged into cifs-2.6.git for-next and added cc:stable On Tue, Jan 5, 2021 at 5:08 PM Nathan Chancellor wrote: > > On Tue, Jan 05, 2021 at 12:21:26PM -0800, t...@redhat.com wrote: > > From: Tom Rix > > > > clang static analysis reports this problem > > > > dfs_cache.c:591:2: warning: Argument to

Re: [PATCH] cifs: check pointer before freeing

2021-01-05 Thread Nathan Chancellor
On Tue, Jan 05, 2021 at 12:21:26PM -0800, t...@redhat.com wrote: > From: Tom Rix > > clang static analysis reports this problem > > dfs_cache.c:591:2: warning: Argument to kfree() is a constant address > (18446744073709551614), which is not memory allocated by malloc() > kfree(vi); >

[PATCH] cifs: check pointer before freeing

2021-01-05 Thread trix
From: Tom Rix clang static analysis reports this problem dfs_cache.c:591:2: warning: Argument to kfree() is a constant address (18446744073709551614), which is not memory allocated by malloc() kfree(vi); ^ In dfs_cache_del_vol() the volume info pointer 'vi' being freed