From patchwork Mon Oct 11 19:15:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 246301 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o9BJFSue008093 for ; Mon, 11 Oct 2010 19:15:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755742Ab0JKTP1 (ORCPT ); Mon, 11 Oct 2010 15:15:27 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:44000 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755608Ab0JKTP1 (ORCPT ); Mon, 11 Oct 2010 15:15:27 -0400 Received: by wye20 with SMTP id 20so727229wye.19 for ; Mon, 11 Oct 2010 12:15:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=W0zLNaAF88tm3qAMAd2yKknjOF0UHqzvQhbkIaqGj38=; b=Rb9Z52RCdg9GY6jHOdDoHKa2KFrQOXKmevjL4K+FO8eZrykeGPN+497/i01rcdwzcB n6YQJ8O+0zOA2OL5VHCFqMh77vlExQ9Nn3oJKVPmEJysuc/UJtSf5jFEmg5U62IavcwS q5m37tWMKx9UcPBtDDQaiZy3xskfEqFYoc7cs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=MljhcHn1Ny7wUr0jPgUjpCjxZ+HPsl4RyATQdxhhNy6fyCOHPSP7vgN6ktZY/EJxwL GlD0MFHS2SPR/cyuzEAAVR671JxF7A46s/cZ3ZdD8mMusKbzRlLm2hzpH8HJgWwOSGZ3 Hbay/MC+1gaoU05x5JOATC9gsOHb2MCXVhKs8= Received: by 10.227.142.15 with SMTP id o15mr5723344wbu.175.1286824525723; Mon, 11 Oct 2010 12:15:25 -0700 (PDT) Received: from bicker (h3f05.n1.ips.mtn.co.ug [41.210.191.5]) by mx.google.com with ESMTPS id b30sm3316046wbb.10.2010.10.11.12.15.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 Oct 2010 12:15:22 -0700 (PDT) Date: Mon, 11 Oct 2010 21:15:11 +0200 From: Dan Carpenter To: Yehuda Sadeh Cc: Sage Weil , ceph-devel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [patch 2/2 -next] rbd: passing wrong variable to bvec_kunmap_irq() Message-ID: <20101011191511.GJ5851@bicker> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 11 Oct 2010 19:15:28 +0000 (UTC) diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 52f9420..6ec9d53 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -554,7 +554,7 @@ static void zero_bio_chain(struct bio *chain, int start_ofs) buf = bvec_kmap_irq(bv, &flags); memset(buf + remainder, 0, bv->bv_len - remainder); - bvec_kunmap_irq(bv, &flags); + bvec_kunmap_irq(buf, &flags); } pos += bv->bv_len; }