Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753882AbbKLS5U (ORCPT ); Thu, 12 Nov 2015 13:57:20 -0500 Received: from mail-lb0-f172.google.com ([209.85.217.172]:34741 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753163AbbKLS5S (ORCPT ); Thu, 12 Nov 2015 13:57:18 -0500 Message-ID: <5644E10A.9010703@bjorling.me> Date: Thu, 12 Nov 2015 19:57:14 +0100 From: =?UTF-8?B?TWF0aWFzIEJqw7hybGluZw==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Geert Uytterhoeven CC: linux-block@vger.kernel.org, "linux-kernel@vger.kernel.org" , Jens Axboe Subject: Re: [PATCH] lightnvm: change max_phys_sect to ushort References: <1447353300-26027-1-git-send-email-m@bjorling.me> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 774 Lines: 16 On 11/12/2015 07:42 PM, Geert Uytterhoeven wrote: > On Thu, Nov 12, 2015 at 7:35 PM, Matias Bjørling wrote: >> The max_phys_sect variable is defined as a char. We do a boundary check >> to maximally allow 256 physical page descriptors per command. As we are >> not indexing from zero. This expression is always in false. Bump the >> max_phys_sect to an unsigned short to support the range check. > > unsigned int? Grah, I need to be more careful. I sent the wrong patch after I had fixed it to unsigned short. -- 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/