File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1526,6 +1526,12 @@ static int bcm_release(struct socket *sock)
1526
1526
1527
1527
lock_sock (sk );
1528
1528
1529
+ #if IS_ENABLED (CONFIG_PROC_FS )
1530
+ /* remove procfs entry */
1531
+ if (net -> can .bcmproc_dir && bo -> bcm_proc_read )
1532
+ remove_proc_entry (bo -> procname , net -> can .bcmproc_dir );
1533
+ #endif /* CONFIG_PROC_FS */
1534
+
1529
1535
list_for_each_entry_safe (op , next , & bo -> tx_ops , list )
1530
1536
bcm_remove_op (op );
1531
1537
@@ -1561,12 +1567,6 @@ static int bcm_release(struct socket *sock)
1561
1567
list_for_each_entry_safe (op , next , & bo -> rx_ops , list )
1562
1568
bcm_remove_op (op );
1563
1569
1564
- #if IS_ENABLED (CONFIG_PROC_FS )
1565
- /* remove procfs entry */
1566
- if (net -> can .bcmproc_dir && bo -> bcm_proc_read )
1567
- remove_proc_entry (bo -> procname , net -> can .bcmproc_dir );
1568
- #endif /* CONFIG_PROC_FS */
1569
-
1570
1570
/* remove device reference */
1571
1571
if (bo -> bound ) {
1572
1572
bo -> bound = 0 ;
You can’t perform that action at this time.
0 commit comments