Re: [PATCH] tpm: st33zp24: check if chip is null before dereferencing

2018-04-10 Thread Sasha Levin
Hi, [This is an automated email] This commit has been processed because it contains a "Fixes:" tag, fixing commit: 9e0d39d8a6a0 tpm: Remove useless priv field in struct tpm_vendor_specific. The bot has also determined it's probably a bug fixing patch. (score: 19.6716) The bot has tested the

Re: [PATCH] tpm: st33zp24: check if chip is null before dereferencing

2018-04-10 Thread Sasha Levin
Hi, [This is an automated email] This commit has been processed because it contains a "Fixes:" tag, fixing commit: 9e0d39d8a6a0 tpm: Remove useless priv field in struct tpm_vendor_specific. The bot has also determined it's probably a bug fixing patch. (score: 19.6716) The bot has tested the

Re: [PATCH] tpm: st33zp24: check if chip is null before dereferencing

2018-04-06 Thread Jason Gunthorpe
On Fri, Apr 06, 2018 at 05:05:41PM +0100, Colin King wrote: > From: Colin Ian King > > Currently chip is being dereferenced by the call to dev_get_drvdata > before it is being null checked, hence we have a potential null > pointer dereference bug. Fix this by only

Re: [PATCH] tpm: st33zp24: check if chip is null before dereferencing

2018-04-06 Thread Jason Gunthorpe
On Fri, Apr 06, 2018 at 05:05:41PM +0100, Colin King wrote: > From: Colin Ian King > > Currently chip is being dereferenced by the call to dev_get_drvdata > before it is being null checked, hence we have a potential null > pointer dereference bug. Fix this by only dereferencing it after the >