Q: free up of memory allocated with the devm_kzalloc if driver probe fails

From: devendra.aaru
Date: Sat Jul 14 2012 - 04:02:49 EST


Hi,


manual page of devm_kzalloc says that "the memory allocated with
this function is freed automatically at driver detach".
Say for example driver probe failed, will the memory be freed up?
as driver's remove callback will not be called since probe failed.

Thanks,
Devendra
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/