Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3662211pxu; Sun, 11 Oct 2020 19:16:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQrRLn8Y+9HstTOo32oMKFPt9r/jM0PpcpW02Pw+cRIB4rQJf1DZ1pDT6KipznH6dckuXX X-Received: by 2002:a17:906:f90a:: with SMTP id lc10mr26659870ejb.272.1602468980272; Sun, 11 Oct 2020 19:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602468980; cv=none; d=google.com; s=arc-20160816; b=KytzPMEOz6PUYOIOd6209KDbiK/QvKC/hbCDCfGN+Ftrwc3THvZg9BMxwyg0yS9tYg sscslOFF6+j3mpNPh3pPIgRtR/cM3phkoe/oNfjZt0c8fk26KEKveYXTQaaSLX0rQc6W RfKzE2FdEaQLNZxfUzirFQsZPyMS7xhGseWeIcNI99/XMqlGEUx4YGPyzYU14eG1+9+x x8MENIUU/S+7Pwdt1sg6kiQ7ia7iwmLnwEyvxra+eu4nkIwg+u2mg7gBMEYEIUBd0FGV vSmPcSLyeqjMhFTbsT3eus9Sih2RtoPRF0rfA5S4GaBjkE4/MuPzjLxfbn0i5rGT3J7R nJAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=DWSdWIEFcj59lt2Dg2oaxr8ttrmTzhkrS26U+qIS/Ks=; b=MOSIwfyFy1zg9ODEuc+FCUHqIEv6H5kGSRwGrrRhPuGJrxL6x7NiXMG9xuv6lss4tV CT04Nx+U+SvtyL1mz+n3QjOGFXcTpP5yMaDy09BKXDFc0XdzATcc1h7mxPNVK9O38NBx AECOKSEgSFSjoI4AGuUlxlnpxSz9+oCO21TIYbFmcVDOJ0Qdiq+IXC5bu22wcXzy+f7v 6QkiPw0aNC+zYVGjcoPUm/gCDbNjzm9YZJaGCNfFiKiSOfAT9eE8pXGfqT+sHZdvyOvP 4haESrHL8dQfEu70do3a5A1H5aea4t7T1R+YhHKSUH/DOnqIGc79eIQ5JplZTU7UcrT2 sJmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@valentin-vidic.from.hr header.s=2020 header.b=3D12xxrI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=valentin-vidic.from.hr Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k19si11223574ejg.614.2020.10.11.19.15.57; Sun, 11 Oct 2020 19:16:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@valentin-vidic.from.hr header.s=2020 header.b=3D12xxrI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=valentin-vidic.from.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387503AbgJKVVn (ORCPT + 99 others); Sun, 11 Oct 2020 17:21:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387413AbgJKVVn (ORCPT ); Sun, 11 Oct 2020 17:21:43 -0400 Received: from valentin-vidic.from.hr (valentin-vidic.from.hr [IPv6:2001:470:1f0b:3b7::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F245DC0613CE; Sun, 11 Oct 2020 14:21:41 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at valentin-vidic.from.hr Received: by valentin-vidic.from.hr (Postfix, from userid 1000) id 553363FEE; Sun, 11 Oct 2020 23:21:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=valentin-vidic.from.hr; s=2020; t=1602451295; bh=DWSdWIEFcj59lt2Dg2oaxr8ttrmTzhkrS26U+qIS/Ks=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=3D12xxrIHVU0FmvNsrY5ormL7Pu69SbMGOD+gUWYA30k0XbfV8LQdUZY9kkPFzAUi Fv1FL0bphwaFFx8Sg3YckaaSwUwM/SYp3ffadbXsrpuVZm2/8poPEmIcvlA/oK//Zl SttL+yYij3xrDDHMF1cjrS1dZW5qgWPuveFQxjGKu8sesOZrdcRo7ud746hSKwQkDP ThEq2NLe6vCQ7ctrLRXh0tCb5ljf7NKoeuYeRt77ccanpETHe7f1bvUAIcspaM73cL vjAuvQcBNFz+lx3F+HdWTRHF+dSN2+fJtNkR/dLCQWJHwBVC+hdDcJ/vOqioJ27PDb yo1OwT6Zw0A2On+bA4KwlFltlHnt8uE+hFM/U1AylRnXDf3MtOHYmFA5UH/Ng9oUrJ XfRmc/SDKbFyfrmdXQD5GjOelEJhdq63oLNb0jM4ehXQGQ5kFEF0pZeoZVjI9J1CzF VFSSur6PH0qyQg0K2KCuOMvPzqPpKVLKDQlF9/OweNG7H4KTw3Wh9GQODOXqrG75WT GMrTA3m0/8Ye1hp4lX1wdBegZLFJ1fqDUeCXkv6IziM9xa7jJcM4OhbiTLPjGC/TD+ p/XVU9s9e4kh9MvS3FwRt/4tFrzBHYfV4hNJEyzVq3coxnqifUvWSPEiQ5Oiu0MV86 Dr7x2E3zw2Tl2fNMgobX3Y8A= Date: Sun, 11 Oct 2020 23:21:35 +0200 From: Valentin =?utf-8?B?VmlkacSH?= To: Willem de Bruijn Cc: "David S. Miller" , Philip Rischel , Florian Fainelli , Roman Yeryomin , Jakub Kicinski , Andrew Morton , Mike Rapoport , Martin Habets , "Michael S. Tsirkin" , Network Development , linux-kernel Subject: Re: [PATCH] net: korina: free array used for rx/tx descriptors Message-ID: <20201011212135.GD8773@valentin-vidic.from.hr> References: <20201011113955.19511-1-vvidic@valentin-vidic.from.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 11, 2020 at 02:37:33PM -0400, Willem de Bruijn wrote: > Slightly off-topic, but I don't fully fathom what goes on with this > pointer straight after the initial kmalloc. > > lp->td_ring = (struct dma_desc *)KSEG1ADDR(lp->td_ring); KSEG1ADDR should rewrite the memory address into the uncached region for memory mapped I/O. Not sure if this would case problems for kfree since there is another kfree on the fail path: probe_err_register: kfree(lp->td_ring); -- Valentin