From patchwork Tue Jan 16 02:54:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunming Zhou X-Patchwork-Id: 10165759 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1167F601D3 for ; Tue, 16 Jan 2018 02:55:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDCEB27C0B for ; Tue, 16 Jan 2018 02:55:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E03EB27D0E; Tue, 16 Jan 2018 02:55:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0B1B027C0B for ; Tue, 16 Jan 2018 02:55:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D3AB89DFE; Tue, 16 Jan 2018 02:55:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0085.outbound.protection.outlook.com [104.47.38.85]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9480689DFE for ; Tue, 16 Jan 2018 02:55:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=l5C/dz6BXnsTOoEdijRZITN9dIuoQ6epGgxzgyzua8o=; b=mhts5D9lWtj1s4QAgG+4VaPlse93gCaIlk8AHRLybpJGSKnRM+716CazP1XnnRmaD1ttv5ZEZvn+G2HM2gJqBsZ2lYNwSzC7dToTfJZcvqj47uKxNQzxWOginXG4o2sfA2oZiTdaYQ3iIxpgChpM18+7jD/60AxPVrOAilGFtK4= Received: from MWHPR12CA0059.namprd12.prod.outlook.com (10.175.47.149) by MWHPR1201MB0063.namprd12.prod.outlook.com (10.174.98.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Tue, 16 Jan 2018 02:55:01 +0000 Received: from BY2NAM03FT020.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::206) by MWHPR12CA0059.outlook.office365.com (2603:10b6:300:103::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Tue, 16 Jan 2018 02:55:00 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by BY2NAM03FT020.mail.protection.outlook.com (10.152.84.224) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.19 via Frontend Transport; Tue, 16 Jan 2018 02:55:00 +0000 Received: from zhoucm1.amd.com (10.34.1.3) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server id 14.3.361.1; Mon, 15 Jan 2018 20:54:59 -0600 From: Chunming Zhou To: Subject: [PATCH libdrm] drm: fix return value Date: Tue, 16 Jan 2018 10:54:55 +0800 Message-ID: <20180116025455.18971-1-david1.zhou@amd.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(346002)(396003)(376002)(2980300002)(428003)(199004)(189003)(7696005)(54906003)(6916009)(478600001)(81166006)(8676002)(81156014)(104016004)(53416004)(59450400001)(72206003)(8936002)(16586007)(1076002)(86362001)(51416003)(356003)(68736007)(2906002)(50226002)(6666003)(305945005)(5660300001)(316002)(106466001)(48376002)(47776003)(105586002)(2351001)(53936002)(4326008)(77096006)(50466002)(97736004)(36756003)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR1201MB0063; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM03FT020; 1:UXm495252JDcZL1YV+1jnM1MpQ/93xYiJABxiYjL3WzlOoXosCZ6WfY5ZVHVKVhus8RLk2gsncrsL3TyyV446isxV6kPQjINDI+nPT0JpzuUsw45UdISM5eBs2ntX7cY X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f3c9842-6ce6-4806-df09-08d55c8c890e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060); SRVR:MWHPR1201MB0063; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0063; 3:KJs/RxCOAd15uggmpQsRhCFi+wqSKvMa9A9qQddlGEFqmrA8DCh/Qw8aRTvuQKIMn4QefR2/kHW4IiYfB7u9pZM1BzymcEQT04B0B5KPId7ENfTqMZNGADgHnNZiXoQ+uRPYyc+R3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IkIiwYwxXdKZ4Fcha+5ROs1IbeV2J7uc2PuRj/G1ykl99PEUswTiqcxIVoXW0tQETODWiTxB0CtSz3bUJSarV9AapEyMrMPykrq0G9J6C+6kBPtEcT3jJqXaGCWSZLeQatzOLoG+mhspV+9qq1kOLlyMeOpsbM/opSH4f5whtkQkR6y8jnqOm0vfn4QYL1yATMU6DgByaxlzOwqPCXLrCHg1DmpuBWnmu1rtjoejMn9NhSRwe/ppGebeDgpkCWTvWqlzY4/2C+BVDzBf0E6G8aAlgDO7zHGMJuTkPQCGNylR9Uk9Kh3mgOrnplxmHnWEdeqxH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(10201501046)(3231023)(944501161)(3002001)(93006095)(93003095)(6055026)(6041268)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:MWHPR1201MB0063; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR1201MB0063; X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0063; 4:1dvN4BQzq7yvDUO6FXxAFuAo2ou52Qu9A1tHe5LB/GhcEmb+GobYkpcvBMqi/XmQo5Tk7Zo5nUFt5cXUkaWMvTWEog5v09XziJqortqqJn3hAYuh301SuFkSvMYi45chmtH2Gn7y/J5hY1THVuoC/Liatk2U/NTyvSj/iQuZLqJP3BCA+uNZG2LFe27p1xC8pBjJR5cQ0NZmaH86tpj3Ecd+RunCV8Sb98haUAM1pl4bPVu/pwFSwqPM7CqfyfVq7RUYiavDZPzLvqRYLvIbrMmwMPgAWv2/lDKvTGlWtfGrKm1M3MjseLT/NgijfI/g X-Forefront-PRVS: 0554B1F54F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR1201MB0063; 23:xFoX/EQeGW7hsodu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PgNxyILy54euyeQD1NRD2/z74xZ0b/TTOw7XD6SA6/hrRX5su9gUgWugb04D5uyyxwiqqqjmORMjXnmjQ0sZa/uFFejWvna8PU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR1201MB0063; 20:bSxLrFAZNzaEd+QVi06wkqb9V04W2czMBb+6x6SJXS2FlrUwFWf/bMFT9zFN2iiiMsdYdynDALET9p+ZdC1DwHfSQS4YEQ1vKPqLnzWKK5/rqMMeQZarR3XUt7A2QeCO32wjko0rN7KxcobDAaftCHRSVowR7oAb+Cs0fctESLxZEnDm2FYGDoD6ea4NQBD91uKfi7da4xsCo8vIQ6qDxgYGytLZvACtp5T6g+KE+eaIes2tDGovNaTJ4/q5hkk/ X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 02:55:00.5079 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f3c9842-6ce6-4806-df09-08d55c8c890e X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0063 Cc: Seth.Zhu@amd.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP otherwise -ETIME is missed. Change-Id: Ic5580a74d8027cc468c6135f8cf2f81817993423 Signed-off-by: Chunming Zhou --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index 8a327170..3881bd9f 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -4241,7 +4241,7 @@ int drmSyncobjWait(int fd, uint32_t *handles, unsigned num_handles, ret = drmIoctl(fd, DRM_IOCTL_SYNCOBJ_WAIT, &args); if (ret < 0) - return ret; + return -errno; if (first_signaled) *first_signaled = args.first_signaled;