From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Sat, 22 Sep 2012 12:55:12 +0000 Subject: Re: [patch] HID: picoLCD: off by one in dump_buff_as_hex() Message-Id: <20120922125512.GG4587@mwanda> List-Id: References: <20120914110414.GA1152@elgon.mountain> <20120917225437.6f2847ee@neptune.home> <20120919213535.34712fb5@neptune.home> In-Reply-To: <20120919213535.34712fb5@neptune.home> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Bruno =?iso-8859-1?Q?Pr=E9mont?= Cc: Jiri Kosina , linux-input@vger.kernel.org, kernel-janitors@vger.kernel.org On Wed, Sep 19, 2012 at 09:35:35PM +0200, Bruno Pr=E9mont wrote: > Dan, >=20 > What's your opinion on below alternative patch? > In addition to yours it makes would-overflow visible. >=20 > It does not check for output buffer having non-zero size but > as callers are local with #defined buffer size I don't think that would > be needed. >=20 Sorry for the delay. Looks good to me. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html