Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751331AbWAIUqj (ORCPT ); Mon, 9 Jan 2006 15:46:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751333AbWAIUqj (ORCPT ); Mon, 9 Jan 2006 15:46:39 -0500 Received: from gold.veritas.com ([143.127.12.110]:52808 "EHLO gold.veritas.com") by vger.kernel.org with ESMTP id S1751331AbWAIUqi (ORCPT ); Mon, 9 Jan 2006 15:46:38 -0500 Date: Mon, 9 Jan 2006 20:46:49 +0000 (GMT) From: Hugh Dickins X-X-Sender: hugh@goblin.wat.veritas.com To: Linus Torvalds cc: Jesper Juhl , Dave Jones , Andrew Morton , Doug Gilbert , James Bottomley , Nick Piggin , Mike Christie , linux-kernel@vger.kernel.org Subject: [PATCH] fix Jesper's sg_page_free Bad page states In-Reply-To: Message-ID: References: <20060107052221.61d0b600.akpm@osdl.org> <9a8748490601070708p4353eb0ev9ea15edee132b13b@mail.gmail.com> <9a8748490601090947i524d5f73uf5ccd06d8c693cae@mail.gmail.com> <20060109175748.GD25102@redhat.com> <9a8748490601091001y74fba5q2cd7e08a324701c3@mail.gmail.com> <9a8748490601091048x46716e25u2fe2ebe9b5fbc9bb@mail.gmail.com> <9a8748490601091139pf5fb6a0v3c8b3bcb41b85940@mail.gmail.com> <9a8748490601091230g5ed68e07rc379e52ef06ec31a@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 09 Jan 2006 20:46:37.0675 (UTC) FILETIME=[C91AB3B0:01C6155D] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 825 Lines: 24 sg_page_malloc clear the data buffer, not that extent of mem_map. Signed-off-by: Hugh Dickins --- drivers/scsi/sg.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) --- 2.6.15-git5/drivers/scsi/sg.c 2006-01-09 14:05:49.000000000 +0000 +++ linux/drivers/scsi/sg.c 2006-01-09 20:03:59.000000000 +0000 @@ -2493,7 +2493,7 @@ sg_page_malloc(int rqSz, int lowDma, int } if (resp) { if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SYS_RAWIO)) - memset(resp, 0, resSz); + memset(page_address(resp), 0, resSz); if (retSzp) *retSzp = resSz; } - 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/