Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3318608imm; Sun, 30 Sep 2018 17:41:36 -0700 (PDT) X-Google-Smtp-Source: ACcGV631RJc7tacKYPslSgAU0yXN/RkNWCmThHYMrLS6strtvO6/PQJpbKqsKIid7q31/0ldgxZo X-Received: by 2002:a65:6499:: with SMTP id e25-v6mr7834587pgv.224.1538354496864; Sun, 30 Sep 2018 17:41:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538354496; cv=none; d=google.com; s=arc-20160816; b=eodBbEhylSxc55D1wPnsdIi30ZJ9McS1WCxilEhz42SFYn3U6+Z1pBppr75P3j84nb ejTrV1monj2erITQORXqO0p+ndPc7yw1aGGoPX2IgCdrxKfF0rN9d7Yx8hYMxkvC7ufA GUYr+n7uNjFx/Duus0UNh6o9yrtVz27wfGnLZhBwwRSNN8gKPkmr4yMZFywABPiAjExi QgUEX56BVNgn/jkbr5epl7No+RhKws5wyPT0JYPJ85nQ4JqwSWqlXFTZ+HVxsJvEA47k Fw5hcUAH3LnYIXBGn/EBmJZMQuOITJiToRYnSizcp/WS4rOPTrmTmIqKWddTMbTbj64l 8kpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=wQO8hH9Op4KdZswGOokUdFxJrnsTJ4WqNZQ7cB8GTN0=; b=pTEBXxT1f9i/St3BXGP3X/oIhYEgHOsXDAYWFfHW4Od8SGCDeBuL8j7bjgaNVAhFdD G2+GDptyESowCZ1tSqVDGk4GZmH9wFv+/HHPFh7rpp8Z0UpUWvIW0LFMFTTp+B2V344o 5TYNrA2i7mXs61lrraedlndO49ZSCaDwnlL9EkzEcHq6HNcHp1ds8P+1PIkypt3RCpjx SavNzLIZkh0m/HgBhPJ+n5V5G/Jqz1emOOze3iEDqRw7iqHUscdg3l7uGLI5lIS3cVAv A6RAhXEPQW0lRc9EM5mmk0nd46/tbHIVrF6I7RbnwDrMcy43VYewENnH+a08SeiJqrgE vu1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=G5NFlOjy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p19-v6si10570204plo.26.2018.09.30.17.41.22; Sun, 30 Sep 2018 17:41:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=G5NFlOjy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729346AbeJAHOa (ORCPT + 99 others); Mon, 1 Oct 2018 03:14:30 -0400 Received: from mail-eopbgr680112.outbound.protection.outlook.com ([40.107.68.112]:63837 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729265AbeJAHO3 (ORCPT ); Mon, 1 Oct 2018 03:14:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wQO8hH9Op4KdZswGOokUdFxJrnsTJ4WqNZQ7cB8GTN0=; b=G5NFlOjyFLMkpvJ5oQtz9thgYTwhKIW1brLwcLJwN8BlrJD2G/h/vzLdXoYGYTPvcuWeK6PzCyppPY8e6AfCO0Fro0wcRnwNa8CjjohVF6rh6ZJvPT2iJk4JuZc2Bba9OyLblYA9k+6qMpPC0AnIl8xLW4cuDRiaSV6vjqTFBA4= Received: from CY4PR21MB0776.namprd21.prod.outlook.com (10.173.192.22) by CY4PR21MB0824.namprd21.prod.outlook.com (10.173.192.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.3; Mon, 1 Oct 2018 00:39:04 +0000 Received: from CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::54e2:88e0:b622:b36]) by CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::54e2:88e0:b622:b36%5]) with mapi id 15.20.1228.006; Mon, 1 Oct 2018 00:39:04 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: =?utf-8?B?Q2hyaXN0aWFuIEvDtm5pZw==?= , Alex Deucher , Sasha Levin Subject: [PATCH AUTOSEL 4.18 56/65] drm/amdgpu: fix error handling in amdgpu_cs_user_fence_chunk Thread-Topic: [PATCH AUTOSEL 4.18 56/65] drm/amdgpu: fix error handling in amdgpu_cs_user_fence_chunk Thread-Index: AQHUWR8Xou0cJhyfXU6hH3jRTjU1Ww== Date: Mon, 1 Oct 2018 00:38:36 +0000 Message-ID: <20181001003754.146961-56-alexander.levin@microsoft.com> References: <20181001003754.146961-1-alexander.levin@microsoft.com> In-Reply-To: <20181001003754.146961-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR21MB0824;6:7S4fJpqG0g0qcCEVlRAmFrgC19MC7c0RHX2rNAY3nGJpIkFyyvwZIqmm8PYwP6WoCLjl7iMFhgLXS46WemEVMEB6RxhDn64LehnQtFEv8fchyEcTu7H+/NfZhg8T4Qtl1e0EznZKt/spFbaMMPhvc8osFJNYdkg2CyuKx7GQ6zTkZjufosIin71fOyRarAZeZG2nq+IQBkLPgWX2NktzwuG0UhjZ0DJL1FvlIcxNh0UR5OqkDq1f9BAEOhuC6Ag6uCAxIfsa5ksySJhxx4tfbwzu1M73tFMI+GUhFsYyq8wuKttMWAtNIo8GFN3hf1YP73TaWsvTbdzcOxhwm7YlK5WgxNmj41FWQokrL4+uX5WbxK9w1x/RXeRHVHw+i3bOgg2n9Xg2Lu78b1GdYYH38RPDNRvas0Nw62wxSJJj80h7d5OZE01AtGLwlLprLEfSksawXAINl6qJcOcksWVZFA==;5:IFouNZC44lueu1wIodqf4Dq6penxdBbStVrZ5+O0QetLZvJaK9z4AN3PAA/J5GrNwiir51bUGbnXeBNook38JUyPgNx/ZEr7iNBXv9TPfMDwHF0SZLY9qPIsY3tDqccLlMjWcRsrxw+zNNttpozQQX6swKvD32O836S4aDCn+RI=;7:a6JbvVuY7m6WY6cbyifkc0oxnWsZmr2W7/Da1DIgczcKh/OLg2n9nLVGiXKr+I6ZrL8Aa57XxVtnbTX7yGnNQ+vzKX/Gdne8dXZ0UV49qONohO4rK4rwFw8Rl1UJ7iZdVHWKl7S7nfmORihvCgEDssDfniQHLa1dZvw6BNqc6Aei2rOmyRPOsXdJfSllAJaYnUNQ6drY8SyVdPkURZyXiqusRmowcBkm1UINJIFypQlaPk8FcC/j4JF8SsG6VMpw x-ms-office365-filtering-correlation-id: a6de4500-1d49-4a95-e78f-08d627364a35 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:CY4PR21MB0824; x-ms-traffictypediagnostic: CY4PR21MB0824: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(767451399110)(28532068793085)(89211679590171); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(2018427008)(3002001)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991041);SRVR:CY4PR21MB0824;BCL:0;PCL:0;RULEID:;SRVR:CY4PR21MB0824; x-forefront-prvs: 0812095267 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39860400002)(346002)(396003)(376002)(136003)(189003)(199004)(256004)(99286004)(86612001)(22452003)(2906002)(25786009)(2900100001)(8936002)(14454004)(5250100002)(36756003)(10290500003)(76176011)(2501003)(478600001)(316002)(68736007)(8676002)(72206003)(305945005)(81156014)(6506007)(110136005)(54906003)(7736002)(10090500001)(81166006)(107886003)(66066001)(486006)(86362001)(6486002)(105586002)(11346002)(476003)(446003)(2616005)(53936002)(4326008)(1076002)(6512007)(217873002)(6116002)(3846002)(6436002)(97736004)(34290500001)(102836004)(6666003)(5660300001)(14444005)(26005)(71200400001)(71190400001)(186003)(106356001);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR21MB0824;H:CY4PR21MB0776.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 6nG0cEZJ9TGO3U9Ty3qkobrEkvNLQhV+GxZuJn6hkGhUGgoV3k0QRTz07psKF/C8pW7cx3nvG81E63SyNn1yIt4f4r9IjyGQlIlERQ73nBLicp44urcSabdG9zgEIFEh9o0OKu3OuEIir3xVkQbKj8h95SklKD5vPNFZj0Y6Eqm+gEoMv6G9yem6pXkZyaAm8YB2nAX6UTrJzVh/h+Cw2sG5yH0B8gbmdAxDmXp6dPVIWOrOgziN8YIhZ/5G68z6nqgdAL2/yJgT5E8SamRRTLGA+LqMKl388RdICL0M8YBSHq3m8jA9ycXGv/IDqA+qqwbr/mYFaU4SvYUx3E/8r+KM4f788wPVMiGC0WOIB0E= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <8C4398F80C7DCD449B0B953295DBE3AE@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6de4500-1d49-4a95-e78f-08d627364a35 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Oct 2018 00:38:36.6566 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0824 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogQ2hyaXN0aWFuIEvDtm5pZyA8Y2hyaXN0aWFuLmtvZW5pZ0BhbWQuY29tPg0KDQpbIFVw c3RyZWFtIGNvbW1pdCAwMTY1ZGU5ODMyNzJkMWZhZTA4MDllZDlkYjQ3YzQ2YTQxMjI3OWJjIF0N Cg0KU2xvd2x5IGxlYWtpbmcgbWVtb3J5IG9uZSBwYWdlIGF0IGEgdGltZSA6KQ0KDQpTaWduZWQt b2ZmLWJ5OiBDaHJpc3RpYW4gS8O2bmlnIDxjaHJpc3RpYW4ua29lbmlnQGFtZC5jb20+DQpSZXZp ZXdlZC1ieTogQW5kcmV5IEdyb2R6b3Zza3kgPGFuZHJleS5ncm9kem92c2t5QGFtZC5jb20+DQpT aWduZWQtb2ZmLWJ5OiBBbGV4IERldWNoZXIgPGFsZXhhbmRlci5kZX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