Re: [tpmdd-devel] [PATCH] TPM: Avoid reference to potentially freed memory

2015-10-30 Thread Jarkko Sakkinen
On Thu, Oct 29, 2015 at 12:48:44PM +0200, Jarkko Sakkinen wrote: > On Thu, Oct 29, 2015 at 07:12:01AM +0100, Marion & Christophe JAILLET wrote: > > > > > > Le 27/10/2015 11:27, Jarkko Sakkinen a écrit : > > >On Fri, Oct 23, 2015 at 10:37:33AM +0300, Jarkko Sakkinen wrote: > > >>On Thu, Oct 22, 20

Re: [tpmdd-devel] [PATCH] TPM: Avoid reference to potentially freed memory

2015-10-29 Thread Jarkko Sakkinen
On Thu, Oct 29, 2015 at 07:12:01AM +0100, Marion & Christophe JAILLET wrote: > > > Le 27/10/2015 11:27, Jarkko Sakkinen a écrit : > >On Fri, Oct 23, 2015 at 10:37:33AM +0300, Jarkko Sakkinen wrote: > >>On Thu, Oct 22, 2015 at 10:32:41PM +0200, Christophe JAILLET wrote: > >>>Reference to the 'np'

Re: [tpmdd-devel] [PATCH] TPM: Avoid reference to potentially freed memory

2015-10-28 Thread Marion & Christophe JAILLET
Le 27/10/2015 11:27, Jarkko Sakkinen a écrit : On Fri, Oct 23, 2015 at 10:37:33AM +0300, Jarkko Sakkinen wrote: On Thu, Oct 22, 2015 at 10:32:41PM +0200, Christophe JAILLET wrote: Reference to the 'np' node is dropped before dereferencing the 'sizep' and 'basep' pointers, which could by then

Re: [tpmdd-devel] [PATCH] TPM: Avoid reference to potentially freed memory

2015-10-27 Thread Jarkko Sakkinen
On Fri, Oct 23, 2015 at 10:37:33AM +0300, Jarkko Sakkinen wrote: > On Thu, Oct 22, 2015 at 10:32:41PM +0200, Christophe JAILLET wrote: > > Reference to the 'np' node is dropped before dereferencing the 'sizep' and > > 'basep' pointers, which could by then point to junk if the node has been > > free

Re: [PATCH] TPM: Avoid reference to potentially freed memory

2015-10-23 Thread Jarkko Sakkinen
On Thu, Oct 22, 2015 at 10:32:41PM +0200, Christophe JAILLET wrote: > Reference to the 'np' node is dropped before dereferencing the 'sizep' and > 'basep' pointers, which could by then point to junk if the node has been > freed. > > Refactor code to call 'of_node_pup' later. > > Signed-off-by: Ch

[PATCH] TPM: Avoid reference to potentially freed memory

2015-10-22 Thread Christophe JAILLET
Reference to the 'np' node is dropped before dereferencing the 'sizep' and 'basep' pointers, which could by then point to junk if the node has been freed. Refactor code to call 'of_node_pup' later. Signed-off-by: Christophe JAILLET --- drivers/char/tpm/tpm_of.c | 3 ++- 1 file changed, 2 insert