lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200817051607.GF2639@vkoul-mobl>
Date:   Mon, 17 Aug 2020 10:46:07 +0530
From:   Vinod Koul <vkoul@...nel.org>
To:     Yu Kuai <yukuai3@...wei.com>
Cc:     ludovic.desroches@...rochip.com, tudor.ambarus@...rochip.com,
        dan.j.williams@...el.com, arnd@...db.de,
        nicolas.ferre@...rochip.com, plagnioj@...osoft.com,
        linux-arm-kernel@...ts.infradead.org, dmaengine@...r.kernel.org,
        linux-kernel@...r.kernel.org, yi.zhang@...wei.com
Subject: Re: [PATCH] dmaengine: at_hdmac: do exception handling appropriately
 in at_dma_xlate()

On 29-07-20, 20:29, Yu Kuai wrote:
> Do several things for exception handing:
> 
> a. check return value of of_find_device_by_node().
> b. call put_device() if memory allocation for 'atslave' failed.
> c. if dma_request_channel() failed, call put_device() and kfree().

One patch per change please

-- 
~Vinod

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ