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 @@ -1511,6 +1511,12 @@ static int bcm_release(struct socket *sock)
1511
1511
1512
1512
lock_sock (sk );
1513
1513
1514
+ #if IS_ENABLED (CONFIG_PROC_FS )
1515
+ /* remove procfs entry */
1516
+ if (net -> can .bcmproc_dir && bo -> bcm_proc_read )
1517
+ remove_proc_entry (bo -> procname , net -> can .bcmproc_dir );
1518
+ #endif /* CONFIG_PROC_FS */
1519
+
1514
1520
list_for_each_entry_safe (op , next , & bo -> tx_ops , list )
1515
1521
bcm_remove_op (op );
1516
1522
@@ -1546,12 +1552,6 @@ static int bcm_release(struct socket *sock)
1546
1552
list_for_each_entry_safe (op , next , & bo -> rx_ops , list )
1547
1553
bcm_remove_op (op );
1548
1554
1549
- #if IS_ENABLED (CONFIG_PROC_FS )
1550
- /* remove procfs entry */
1551
- if (net -> can .bcmproc_dir && bo -> bcm_proc_read )
1552
- remove_proc_entry (bo -> procname , net -> can .bcmproc_dir );
1553
- #endif /* CONFIG_PROC_FS */
1554
-
1555
1555
/* remove device reference */
1556
1556
if (bo -> bound ) {
1557
1557
bo -> bound = 0 ;
You can’t perform that action at this time.
0 commit comments