Re: [PATCH 2/2] soc: fsl: guts: Add a missing memory allocation failure check

2022-01-06 Thread Li Yang
On Thu, Nov 4, 2021 at 4:10 AM Christophe JAILLET wrote: > > If 'devm_kstrdup()' fails, we should return -ENOMEM. > > While at it, move the 'of_node_put()' call in the error handling path and > after the 'machine' has been copied. > Better safe than sorry. > > Suggested-by: Tyrel Datwyler > Signe

Re: [PATCH 2/2] soc: fsl: guts: Add a missing memory allocation failure check

2021-11-03 Thread Michael Ellerman
Christophe JAILLET writes: > If 'devm_kstrdup()' fails, we should return -ENOMEM. > > While at it, move the 'of_node_put()' call in the error handling path and > after the 'machine' has been copied. > Better safe than sorry. > > Suggested-by: Tyrel Datwyler > Signed-off-by: Christophe JAILLET >

[PATCH 2/2] soc: fsl: guts: Add a missing memory allocation failure check

2021-11-03 Thread Christophe JAILLET
If 'devm_kstrdup()' fails, we should return -ENOMEM. While at it, move the 'of_node_put()' call in the error handling path and after the 'machine' has been copied. Better safe than sorry. Suggested-by: Tyrel Datwyler Signed-off-by: Christophe JAILLET --- Not sure of which Fixes tag to add. Shou