Re: kernel BUG at sched.c:564! (2.4.20, 2.4.21-pre5-ac3)

From: Patrick McHardy (kaber@trash.net)
Date: Thu Mar 27 2003 - 12:51:32 EST


Greg KH wrote:

>On Thu, Mar 27, 2003 at 01:35:27PM +0100, Patrick McHardy wrote:
>
>
>>diff -Nru a/drivers/isdn/isdn_net.c b/drivers/isdn/isdn_net.c
>>--- a/drivers/isdn/isdn_net.c Thu Mar 27 02:00:21 2003
>>+++ b/drivers/isdn/isdn_net.c Thu Mar 27 02:00:21 2003
>>@@ -2831,6 +2831,7 @@
>>
>> /* If binding is exclusive, try to grab the channel */
>> save_flags(flags);
>>+ cli();
>> if ((i = isdn_get_free_channel(ISDN_USAGE_NET,
>> lp->l2_proto, lp->l3_proto, drvidx,
>> chidx, lp->msn)) < 0) {
>>
>>
>
>I thought that cli() was being removed from the kernel, not added :)
>
>This can not build on SMP, so you might want to change it.
>
>

this patch is for 2.4, isdn_get_free_channel is protected by cli()
everywhere.

Patrick

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:28 EST