genl: Make genl_unregister() a NOP if NULL pointer is passed
This commit is contained in:
parent
2e93940a86
commit
8bbcd2208e
1 changed files with 3 additions and 0 deletions
|
@ -208,6 +208,9 @@ errout:
|
|||
*/
|
||||
void genl_unregister(struct nl_cache_ops *ops)
|
||||
{
|
||||
if (!ops)
|
||||
return;
|
||||
|
||||
nl_cache_mngt_unregister(ops);
|
||||
nl_list_del(&ops->co_genl->o_list);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue