From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753702AbdJIGcu (ORCPT ); Mon, 9 Oct 2017 02:32:50 -0400 Received: from webclient5.webclient5.de ([136.243.32.179]:36278 "EHLO webclient5.webclient5.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbdJIGct (ORCPT ); Mon, 9 Oct 2017 02:32:49 -0400 Subject: Re: [alsa-devel] [PATCH] opl3: Fix a possible sleep-in-atomic bug in snd_opl3_find_patch To: Jia-Ju Bai Cc: perex@perex.cz, tiwai@suse.com, o-takashi@sakamocchi.jp, elfring@users.sourceforge.net, fabf@skynet.be, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <1507516527-4173-1-git-send-email-baijiaju1990@163.com> From: Clemens Ladisch Message-ID: <5146a06e-0199-3d03-b4d6-9a4f71e4c4af@ladisch.de> Date: Mon, 9 Oct 2017 08:32:48 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <1507516527-4173-1-git-send-email-baijiaju1990@163.com> Content-Type: text/plain; charset=us-ascii Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jia-Ju Bai wrote: > The driver may sleep under a spinlock, and the function call path is: > snd_opl3_note_on (acquire the spinlock) > snd_opl3_find_patch > kzalloc(GFP_KERNEL) --> may sleep This call path is not possible because create_patch is not set. Regards, Clemens