From: Konrad Lipinski Date: Thu, 8 Sep 2016 14:47:38 +0000 (+0200) Subject: Revert "kdbus: connection: fix handling of failed fget()" X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa1b5c4b2bed9605eded87fd4ac3348b9315567f;p=platform%2Fkernel%2Flinux-exynos.git Revert "kdbus: connection: fix handling of failed fget()" This reverts commit c021be145c56a87077165a05b9e26ea4b8403cb8. --- diff --git a/ipc/kdbus/connection.c b/ipc/kdbus/connection.c index ab476fa9ccca..e554f1a71aa1 100644 --- a/ipc/kdbus/connection.c +++ b/ipc/kdbus/connection.c @@ -1997,8 +1997,9 @@ int kdbus_cmd_send(struct kdbus_conn *conn, struct file *f, void __user *argp) if (argv[1].item) { cancel_fd = fget(argv[1].item->fds[0]); - if (!cancel_fd) { - ret = -EBADF; + if (IS_ERR(cancel_fd)) { + ret = PTR_ERR(cancel_fd); + cancel_fd = NULL; goto exit; }