From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932482AbcHIUN4 (ORCPT ); Tue, 9 Aug 2016 16:13:56 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:33788 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932299AbcHIUNw (ORCPT ); Tue, 9 Aug 2016 16:13:52 -0400 Date: Tue, 9 Aug 2016 16:13:49 -0400 From: Tejun Heo To: tom.ty89@gmail.com Cc: hare@suse.de, sergei.shtylyov@cogentembedded.com, arnd@arndb.de, sfr@canb.auug.org.au, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org Subject: Re: [PATCH resend v3 3/5] libata-scsi: use u8 array to store mode page copy Message-ID: <20160809201349.GA25053@mtj.duckdns.org> References: <57926727.840e420a.d7fc9.38dd@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57926727.840e420a.d7fc9.38dd@mx.google.com> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 23, 2016 at 02:34:08AM +0800, tom.ty89@gmail.com wrote: > From: Tom Yan > > ata_mselect_*() would initialize a char array for storing a copy of > the current mode page. However, char could be signed char. In that > case, bytes larger than 127 would be converted to negative number. > > For example, 0xff from def_control_mpage[] would become -1. This > prevented ata_mselect_control() from working at all, since when it > did the read-only bits check, there would always be a mismatch. > > Signed-off-by: Tom Yan Applied to libata/for-4.9. Thanks. -- tejun