Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx2.netapp.com ([216.240.18.37]:33751 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751960Ab2FZWDL (ORCPT ); Tue, 26 Jun 2012 18:03:11 -0400 From: "Myklebust, Trond" To: Chuck Lever CC: "Schumaker, Bryan" , "J. Bruce Fields" , Olga Kornievskaia , "Linux NFS Mailing List" Subject: Re: [PATCH] NFS: Check if rpcauth_create() returns an error code Date: Tue, 26 Jun 2012 22:02:53 +0000 Message-ID: <1340748167.2576.39.camel@lade.trondhjem.org> References: <1340734373-5596-1-git-send-email-bjschuma@netapp.com> <9ED25AEF-945E-4908-8D78-4CC040D9A26A@oracle.com> <4FEA06E3.9060109@netapp.com> <0B660C97-1E4E-4032-8791-66A26275E7F1@oracle.com> In-Reply-To: <0B660C97-1E4E-4032-8791-66A26275E7F1@oracle.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org List-ID: T24gVHVlLCAyMDEyLTA2LTI2IGF0IDE3OjM0IC0wNDAwLCBDaHVjayBMZXZlciB3cm90ZToNCj4g T24gSnVuIDI2LCAyMDEyLCBhdCAzOjAwIFBNLCBCcnlhbiBTY2h1bWFrZXIgd3JvdGU6DQo+IA0K PiA+IE9uIDA2LzI2LzIwMTIgMDI6MjMgUE0sIENodWNrIExldmVyIHdyb3RlOg0KPiA+PiANCj4g Pj4gT24gSnVuIDI2LCAyMDEyLCBhdCAyOjEyIFBNLCBianNjaHVtYUBuZXRhcHAuY29tIHdyb3Rl Og0KPiA+PiANCj4gPj4+IEZyb206IEJyeWFuIFNjaHVtYWtlciA8YmpzY2h1bWFAbmV0YXBwLmNv bT4NCj4gPj4+IA0KPiA+Pj4gSSB3YXMgdHJlYXRpbmcgYSBOVUxMIHJldHVybiB2YWx1ZSBhcyBh biBlcnJvciwgYnV0IHRoaXMgZnVuY3Rpb24gd2lsbA0KPiA+Pj4gaW5zd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