Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8f07a06 authored by Al Viro's avatar Al Viro Committed by David S. Miller
Browse files

fix return values of l2tp_dfs_seq_open()



More fallout from struct net lifetime rules review: PTR_ERR() is *already*
negative and failing ->open() should return negatives on failure.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarJames Chapman <jchapman@katalix.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c316e6a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -258,7 +258,7 @@ static int l2tp_dfs_seq_open(struct inode *inode, struct file *file)
	 */
	pd->net = get_net_ns_by_pid(current->pid);
	if (IS_ERR(pd->net)) {
		rc = -PTR_ERR(pd->net);
		rc = PTR_ERR(pd->net);
		goto err_free_pd;
	}