Re: [PATCH 1/2] list: Add list_is_null() to check if a list_head has been initialized

2021-03-01 Thread Sakari Ailus
Hi Laurent, Thanks for the patch. On Sat, Feb 27, 2021 at 12:49:37AM +0200, Laurent Pinchart wrote: > From: Laurent Pinchart > > The new function checks if the list_head prev and next pointers are > NULL, in order to see if a list_head that has been zeroed when allocated > has been initialized

Re: [PATCH 1/2] list: Add list_is_null() to check if a list_head has been initialized

2021-02-27 Thread Sergei Shtylyov
Hello! On 27.02.2021 1:49, Laurent Pinchart wrote: From: Laurent Pinchart The new function checks if the list_head prev and next pointers are NULL, in order to see if a list_head that has been zeroed when allocated has been initialized with INIT_LIST_HEAD() or added to a list. So zeroed

[PATCH 1/2] list: Add list_is_null() to check if a list_head has been initialized

2021-02-26 Thread Laurent Pinchart
From: Laurent Pinchart The new function checks if the list_head prev and next pointers are NULL, in order to see if a list_head that has been zeroed when allocated has been initialized with INIT_LIST_HEAD() or added to a list. This can be used in cleanup functions that want to support being safe