lkml.org 
[lkml]   [2020]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [Linux-kernel-mentees] [PATCH net] tipc: Fix memory leak in tipc_group_create_member()
From
From: Peilin Ye <yepeilin.cs@gmail.com>
Date: Sat, 12 Sep 2020 06:22:30 -0400

> @@ -291,10 +291,11 @@ static void tipc_group_add_to_tree(struct tipc_group *grp,
> else if (key > nkey)
> n = &(*n)->rb_right;
> else
> - return;
> + return -1;

Use a real error code like "-EEXIST", thank you.

\
 
 \ /
  Last update: 2020-09-13 03:24    [W:5.395 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site