Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757096AbaDVTzo (ORCPT ); Tue, 22 Apr 2014 15:55:44 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49014 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755684AbaDVTzl (ORCPT ); Tue, 22 Apr 2014 15:55:41 -0400 Date: Tue, 22 Apr 2014 12:55:39 -0700 From: Andrew Morton To: Weijie Yang Cc: "'Minchan Kim'" , "'Nitin Gupta'" , iamjoonsoo.kim@lge.com, "'Sergey Senozhatsky'" , "'Bob Liu'" , "'linux-kernel'" Subject: Re: [PATCH] zram: correct offset usage in zram_bio_discard Message-Id: <20140422125539.f40a414ca0dbae703a23b977@linux-foundation.org> In-Reply-To: <000001cf5dd8$ecf1c360$c6d54a20$%yang@samsung.com> References: <000001cf5dd8$ecf1c360$c6d54a20$%yang@samsung.com> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Apr 2014 11:14:02 +0800 Weijie Yang wrote: > we want to skip the logical block which is partially covered by > the discard bio, so check the remaining size and subtract it if > there is a need to goto the next logical block. > > This patch corrects the offset usage in zram_bio_discard. > What were the end-user visible effects of the bug? Please always include this information when fixing something so that others can work out which kernel(s) need patching. -- 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/