aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorAl Viro <[email protected]>2017-12-05 23:27:57 +0000
committerDavid S. Miller <[email protected]>2017-12-05 18:39:28 -0500
commita5739435b5a3b8c449f8844ecd71a3b1e89f0a33 (patch)
treeb440fa1710f0e7c3779461cb1d851596d5b11ac5 /drivers/net/xen-netback/interface.c
parent69c64866ce072dea1d1e59a0d61e0f66c0dffb76 (diff)
fix kcm_clone()
1) it's fput() or sock_release(), not both 2) don't do fd_install() until the last failure exit. 3) not a bug per se, but... don't attach socket to struct file until it's set up. Take reserving descriptor into the caller, move fd_install() to the caller, sanitize failure exits and calling conventions. Cc: [email protected] # v4.6+ Acked-by: Tom Herbert <[email protected]> Signed-off-by: Al Viro <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions