[PATCH 05/10] nvme: add some simplifying macros for __attribute__((cleanup()))

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Mon Mar 8 07:10:00 GMT 2021


On 3/5/21 16:36, mwilck at suse.com wrote:
> From: Martin Wilck <mwilck at suse.com>
>
> Using __attribute__((cleanup())) is very helpful for writing leak-free
> code, but it requires lots of awkward boiler plate code. Add some
> small helpers to make its use more comfortable.
>
> Signed-off-by: Martin Wilck <mwilck at suse.com>
Looks good.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>




More information about the Linux-nvme mailing list