probe fail, what with devm_kzalloc, kcalloc data?

Greg KH greg at kroah.com
Fri Apr 3 10:27:54 EDT 2020


On Fri, Apr 03, 2020 at 02:47:50PM +0200, Tomek The Messenger wrote:
> Hi
> What happens with devm_kzalloc and devm_kcalloc data when probe function
> returns not 0?
> Is this memory automatically deallocated?

Yes.

Try it and see :)

greg k-h



More information about the Kernelnewbies mailing list