francesco iannone wrote:
> Hi
> 
> Unfortunately the problem persists also with v.0.98
> 
> I captured this oops (in backup-master) after "tdmacfg rteth0 detach"
> 
> 
> BUG: spinlock bad magic on CPU#1 tdmacfg/5955
> Lock: f5a8daf0, .magic:00000000, .owner: <none>/-1 .owner_cpu: 0
> <------> _raw_spin_lock+0x1a/0x69
> <------> _spin_lock+0x6/0x8
> <------> __rtskb_pool_release+ox2b/ox55 [rtnet]
> <------> tdma_detach+0xc2/0x145 [rtmac]
> <------> tdma_ioctl+0ea/0xbf [tdma]
> <------> rtnet_ioctl+0xa1/0xd1 [rtnet]
> <------> do_ioctl+0x54/0x65
> <------> vfs_ioctl+0x180/0x18e
> <------> sys_ioctl+ox46/0x62
> <------> sysenter_past_esp+063/0x67
> 
> (more o less)

Hmm, looks like there is another cleanup bug in RTnet. Does this help?

--- stack/rtmac/tdma/tdma_module.c      (Revision 1109)
+++ stack/rtmac/tdma/tdma_module.c      (Arbeitskopie)
@@ -273,7 +273,8 @@ int tdma_detach(struct rtnet_device *rtd
         kfree(tdma->slot_table);

 #ifdef CONFIG_RTNET_TDMA_MASTER
-    rtskb_pool_release(&tdma->cal_rtskb_pool);
+    if (test_bit(TDMA_FLAG_MASTER, &tdma->flags))
+        rtskb_pool_release(&tdma->cal_rtskb_pool);
 #endif

     RTNET_MOD_DEC_USE_COUNT;


Jan

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to