From: Paul Menzel Subject: Re: [PATCH] drm/mgag200: Don't do full cleanup if mgag200_device_init fails Date: Wed, 12 Jun 2013 23:16:13 +0200 Message-ID: <1371071773.5574.10.camel@mattotaupa> References: <20130605152957.6055AF4DC4@venus.matrox.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0325259363==" Return-path: Received: from mail.gw90.de (mail.gw90.de [188.40.100.199]) by gabe.freedesktop.org (Postfix) with ESMTP id 63056E648C for ; Wed, 12 Jun 2013 14:16:29 -0700 (PDT) In-Reply-To: <20130605152957.6055AF4DC4@venus.matrox.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Christopher Harvey Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0325259363== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-N6J5CJEuJPSqAyb+FDMN" --=-N6J5CJEuJPSqAyb+FDMN Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Christopher, Am Mittwoch, den 05.06.2013, 11:29 -0400 schrieb Christopher Harvey: > Running mgag200_driver_unload when the driver init fails early on > causes functions like drm_mode_config_cleanup to be called. The > problem is, drm_mode_config_cleanup crashes because the corresponding > init hasn't happend yet. There really isn't anything to cleanup after > mgag200_device_init, so we can just pass the error code upwards. >=20 > Acked-by: Julia Lemire > Signed-off-by: Christopher Harvey > --- > drivers/gpu/drm/mgag200/mgag200_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) [=E2=80=A6] Acked-by: Paul Menzel You should always CC the maintainer when sending in patches. Thanks, Paul --=-N6J5CJEuJPSqAyb+FDMN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAlG45R4ACgkQPX1aK2wOHVh8GACfe+jLPctrdvxeqXGeVmyLvg/g XkMAn1nGLNteU4VV7LM5UEvkfvSxNcmW =4qLo -----END PGP SIGNATURE----- --=-N6J5CJEuJPSqAyb+FDMN-- --===============0325259363== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0325259363==--