aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/scm.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/scm.c')
-rw-r--r--net/core/scm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/scm.c b/net/core/scm.c
index 040cebeed45b..b0098d259233 100644
--- a/net/core/scm.c
+++ b/net/core/scm.c
@@ -281,11 +281,10 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
281 break; 281 break;
282 } 282 }
283 /* Bump the usage count and install the file. */ 283 /* Bump the usage count and install the file. */
284 get_file(fp[i]);
285 sock = sock_from_file(fp[i], &err); 284 sock = sock_from_file(fp[i], &err);
286 if (sock) 285 if (sock)
287 sock_update_netprioidx(sock->sk, current); 286 sock_update_netprioidx(sock->sk, current);
288 fd_install(new_fd, fp[i]); 287 fd_install(new_fd, get_file(fp[i]));
289 } 288 }
290 289
291 if (i > 0) 290 if (i > 0)