Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752048AbdLLJwV (ORCPT ); Tue, 12 Dec 2017 04:52:21 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:44917 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751577AbdLLJwR (ORCPT ); Tue, 12 Dec 2017 04:52:17 -0500 X-Google-Smtp-Source: ACJfBosZtJWhR7ttetxdjjkTcJZ8eXjhasZOF0SuA3Qzc+9RFiathN31RClMnEIPx49hRnKz6IF2wQ== From: Jia-Ju Bai Subject: [BUG] atmel_ssc_dai: a possible sleep-in-atomic bug in atmel_ssc_shutdown To: nicolas.ferre@microchip.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alexandre.belloni@free-electrons.com, sedji.gaouaou@atmel.com Cc: alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Message-ID: <59796efc-8acd-6655-cf59-67c162201bd7@gmail.com> Date: Tue, 12 Dec 2017 17:52:04 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 350 Lines: 13 According to sound/soc/atmel/atmel_ssc_dai.c, the driver may sleep under a spinlock. The function call path is: atmel_ssc_shutdown (acquire the spinlock) free_irq --> may sleep I do not find a good way to fix it, so I only report. This possible bug is found by my static analysis tool (DSAC) and checked by my code review. Thanks, Jia-Ju Bai