Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761652AbYCGQhz (ORCPT ); Fri, 7 Mar 2008 11:37:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756261AbYCGQhq (ORCPT ); Fri, 7 Mar 2008 11:37:46 -0500 Received: from fk-out-0910.google.com ([209.85.128.190]:31061 "EHLO fk-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756142AbYCGQhp convert rfc822-to-8bit (ORCPT ); Fri, 7 Mar 2008 11:37:45 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-disposition:from:to:subject:date:user-agent:cc:mime-version:content-type:content-transfer-encoding:message-id; b=rjYljQjAv/ofp/vVtkQh1oZAYuvhbcFDO3ezWmEH4hFAhAaZl+1ALBeSzusB1KU+qT0ujc5VNaiYrNWRcjrdxp/VnYwvETw3dwChDfjKJ5pXhmugGpR4EZU8Lcm/VON+KpmXUHRFgxtBseIPVSGBjcP0qt+6ffr34UDRpLTjMwo= Content-Disposition: inline From: Oliver Pinter To: stable@kernel.org Subject: [2.6.24.y stable] ub-fix-up-the-conversion-to-sg_init_table.patch for 2.6.24.y stable-queue Date: Fri, 7 Mar 2008 17:36:54 +0100 User-Agent: KMail/1.9.7 Cc: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Message-Id: <200803071736.54369.oliver.pntr@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1599 Lines: 49 hi patch for 2.6.24.y --- >From 541645be8bbb67d39113096263dcf00615d789e3 Mon Sep 17 00:00:00 2001 From: Pete Zaitcev Date: Sat, 9 Feb 2008 00:10:17 -0800 Subject: [PATCH] ub: fix up the conversion to sg_init_table() Signed-off-by: Pete Zaitcev Cc: "Oliver Pinter" Cc: FUJITA Tomonori Cc: Greg KH Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds diff --git a/drivers/block/ub.c b/drivers/block/ub.c index a70c1c2..c452e2d 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c @@ -657,7 +657,6 @@ static int ub_request_fn_1(struct ub_lun *lun, struct request *rq) if ((cmd = ub_get_cmd(lun)) == NULL) return -1; memset(cmd, 0, sizeof(struct ub_scsi_cmd)); - sg_init_table(cmd->sgv, UB_MAX_REQ_SG); blkdev_dequeue_request(rq); @@ -668,6 +667,7 @@ static int ub_request_fn_1(struct ub_lun *lun, struct request *rq) /* * get scatterlist from block layer */ + sg_init_table(&urq->sgv[0], UB_MAX_REQ_SG); n_elem = blk_rq_map_sg(lun->disk->queue, rq, &urq->sgv[0]); if (n_elem < 0) { /* Impossible, because blk_rq_map_sg should not hit ENOMEM. */ --- thanks, Oliver ------------------------------------------------------- -- thanks, Oliver -- 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/