Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755195AbbL3RPU (ORCPT ); Wed, 30 Dec 2015 12:15:20 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:56136 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755143AbbL3RPS (ORCPT ); Wed, 30 Dec 2015 12:15:18 -0500 Date: Wed, 30 Dec 2015 17:12:57 +0000 From: Mark Brown To: Andrzej Hajda Cc: Liam Girdwood , Kuninori Morimoto , Bartlomiej Zolnierkiewicz , Marek Szyprowski , Jaroslav Kysela , Takashi Iwai , "moderated list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Message-ID: <20151230171257.GY16023@sirena.org.uk> References: <87k2o4fkad.wl%kuninori.morimoto.gx@renesas.com> <1450940559-16516-1-git-send-email-a.hajda@samsung.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="apSYfA7d5AHMku3c" Content-Disposition: inline In-Reply-To: <1450940559-16516-1-git-send-email-a.hajda@samsung.com> X-Cookie: Honk if you love peace and quiet. User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH v2] ASoC: rsnd: fix usrcnt decrementing bug X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1294 Lines: 34 --apSYfA7d5AHMku3c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 24, 2015 at 08:02:39AM +0100, Andrzej Hajda wrote: > Field usrcnt is unsigned so it cannot be lesser than zero. > The patch fixes the check, moves it to the beginning of the function > and changes return value to -EIO in case of usercnt error. Please don't send new patches in reply to old ones, it makes it hard to figure out what the current version of things is. --apSYfA7d5AHMku3c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWhBCYAAoJECTWi3JdVIfQK7UH/AiSbqcIx3Kp6NyJromhsW5n zguexpID1anHx9GJUKPnlah9n7P7jCJIjobC3gjbH3ys6lnjrYqBjeJYG642x3Jw 5eaKKt9bkDydOQVT4jQx3b2HkwuWk4UnnccOGtLkYc/QuGpqTIvgJ6CGxXHgjxkA BArxVmJhhY3yKx4nHrTJtYu16ANYtDwpW9VJHbffusjDNuF5ls2myVBqDKqHA+VR 2tygKTSy8B2BAkX8/9OpVPpLI0UzA8ToBq4jj7azfOrsrMq7QxfhpSfJcgjfoxki 3ayragdlkPqVvL/adNd+hGzbafVNW6v6UhqX54JRLZ/cCGRqjAcUP7n1btJLEw0= =dXMH -----END PGP SIGNATURE----- --apSYfA7d5AHMku3c-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/