Message ID | 20230530093913.1656095-1-claudiu.beznea@microchip.com |
---|---|
Headers | show |
Series | clk: check memory returned by {devm_}kasprintf() | expand |
Quoting Claudiu Beznea (2023-05-30 02:39:06) > kasprintf() returns a pointer to dynamically allocated memory. > Pointer could be NULL in case allocation fails. Check pointer validity. > Identified with coccinelle (kmerr.cocci script). > > Fixes: f491276a5168 ("clk: vc5: Allow Versaclock driver to support multiple instances") > Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> > --- Applied to clk-next
Quoting Claudiu Beznea (2023-05-30 02:39:09) > {devm_}kasprintf() returns a pointer to dynamically allocated memory. > Pointer could be NULL in case allocation fails. Check pointer validity. > Identified with coccinelle (kmerr.cocci script). > > Fixes: 3044a860fd09 ("clk: Add Si5341/Si5340 driver") > Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> > --- Applied to clk-next
Quoting Claudiu Beznea (2023-05-30 02:39:10) > Pointers from synth_clock_names[] should be freed at the end of probe > either on probe success or failure path. > > Fixes: b7bbf6ec4940 ("clk: si5341: Allow different output VDD_SEL values") > Fixes: 9b13ff4340df ("clk: si5341: Add sysfs properties to allow checking/resetting device faults") > Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> > --- Applied to clk-next
Quoting Claudiu Beznea (2023-05-30 02:39:11) > kasprintf() returns a pointer to dynamically allocated memory. > Pointer could be NULL in case allocation fails. Check pointer validity. > Identified with coccinelle (kmerr.cocci script). > > Fixes: b745c0794e2f ("clk: keystone: Add sci-clk driver support") > Depends-on: 96488c09b0f4 ("clk: keystone: sci-clk: cut down the clock name length") > Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> > --- Applied to clk-next