Received: by oss.sgi.com id ; Thu, 20 Apr 2000 11:49:11 -0700 Received: from deliverator.sgi.com ([204.94.214.10]:65086 "EHLO deliverator.sgi.com") by oss.sgi.com with ESMTP id ; Thu, 20 Apr 2000 11:48:51 -0700 Received: from ledzep.cray.com (ledzep.cray.com [137.38.226.97]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via ESMTP id LAA27813 for ; Thu, 20 Apr 2000 11:44:06 -0700 (PDT) mail_from (n8994@sgi.com) Received: from ironwood-e185.americas.sgi.com (ironwood.cray.com [128.162.185.212]) by ledzep.cray.com (SGI-SGI-8.9.3/craymail-smart-nospam1.0) with ESMTP id NAA45606 for ; Thu, 20 Apr 2000 13:47:34 -0500 (CDT) Received: from nt8.americas.sgi.com (nt8.americas.sgi.com [128.162.195.8]) by ironwood-e185.americas.sgi.com (8.8.4/SGI-ironwood-e1.4) with ESMTP id NAA25661 for ; Thu, 20 Apr 2000 13:47:26 -0500 (CDT) From: Russell Cattelan Received: by nt8.americas.sgi.com (980427.SGI.8.8.8/SGI-client.1.6) id NAA38028; Thu, 20 Apr 2000 13:47:32 -0500 (CDT) Message-Id: <200004201847.NAA38028@nt8.americas.sgi.com> Date: Thu, 20 Apr 2000 13:47:32 -0500 (CDT) To: linux-xfs@oss.sgi.com Subject: TAKE - small bug fix in kmem_realloc Sender: owner-linux-xfs@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;linux-xfs-outgoing Modid: 2.3.99pre2-xfs:slinx:58656a Date: Thu Apr 20 11:47:06 PDT 2000 Workarea: nt8.americas.sgi.com:/data/clink/io/cattelan/x2.3-99-xfs The following file(s) were checked into: bonnie.engr.sgi.com:/isms/slinx/2.3.99pre2-xfs linux/fs/xfs/linux/xfs_random.c - 1.32 http://oss.sgi.com/cgi-bin/cvsweb.cgi/linux-2.4-xfs/linux/fs/xfs/linux/xfs_random.c.diff?r1=text&tr1=1.32&r2=text&tr2=1.31&f=h - kmem_realloc may be called to SHRINK alloced space. check to see if newsize is less that oldsize; memcpy the lesser of the two.