Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am getting the OOPS in the SPI driver. In the driver, work queue (create_singlethread_workqueue) is used to transfer the data. When the SPI interface closed,that time below kernel OOPs is happening. I am assuming this is because of pending works.
So, I tried to cancel the pending work in the SPI close function by using the function cancel_delayed_work, but still not working.
Can anyone help me to solve this
Please find the log below.
kernel BUG at kernel/kernel/workqueue.c:1037!
[ 294.024018] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 294.032270] pgd = c0004000
[ 294.035067]  *pgd=00000000
[ 294.038828] Internal error: Oops: 817 [#1] PREEMPT SMP
[ 294.044130] last sysfs file: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
[ 294.052118] Modules linked in: bthid
[ 294.055982] CPU: 1 Tainted: G W (18.104.22.168-dirty #3)
[ 294.062085] PC is at __bug+0x18/0x24
[ 294.065830] LR is at __bug+0x14/0x24
[ 294.069493] pc : [<c0049f1c>] lr : [<c0049f18>] psr: 600001d3
[ 294.069498] sp : cfe27e68 ip : 0000000c fp : cfe1b830
[ 295.100467] [<c0049f1c>] (__bug+0x18/0x24) from [<c00943e0>] (__queue_work+0x27c/0x360)
[ 295.108642] [<c00943e0>] (__queue_work+0x27c/0x360) from [<c0094524>] (queue_work_on+0x38/0x40)
[ 295.117430] [<c0094524>] (queue_work_on+0x38/0x40) from [<c0095e94>] (queue_work+0x2c/0x54)
[ 295.125955] [<c0095e94>] (queue_work+0x2c/0x54) from [<c029f454>] (my_spi_tx_rx_data+0x200/0x26c)