From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754380AbbJOBwo (ORCPT ); Wed, 14 Oct 2015 21:52:44 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:34595 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753430AbbJOBwm (ORCPT ); Wed, 14 Oct 2015 21:52:42 -0400 Date: Thu, 15 Oct 2015 10:53:32 +0900 From: Sergey Senozhatsky To: Joonsoo Kim Cc: Sergey Senozhatsky , Andrew Morton , Minchan Kim , Nitin Gupta , Herbert Xu , "David S. Miller" , Stephan Mueller , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org Subject: Re: [PATCH v4 7/8] zram: use crypto contextless compression API to (de)compress Message-ID: <20151015015332.GD1735@swordfish> References: <1444808304-29320-1-git-send-email-iamjoonsoo.kim@lge.com> <1444808304-29320-8-git-send-email-iamjoonsoo.kim@lge.com> <20151015003841.GC1735@swordfish> <20151015010732.GB4900@js1304-P5Q-DELUXE> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151015010732.GB4900@js1304-P5Q-DELUXE> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (10/15/15 10:07), Joonsoo Kim wrote: [..] > > > if (error) { > > > + crypto_free_ccomp(comp->tfm); > > > kfree(comp); > > > > hm... zcomp_destroy(comp) ? > > It's not possible to use zcomp_destroy() here. It tries to access > field of comp->stream which could be NULL. ah, yep. my bad. -ss