File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1503,6 +1503,12 @@ static int bcm_release(struct socket *sock)
1503
1503
1504
1504
lock_sock (sk );
1505
1505
1506
+ #if IS_ENABLED (CONFIG_PROC_FS )
1507
+ /* remove procfs entry */
1508
+ if (net -> can .bcmproc_dir && bo -> bcm_proc_read )
1509
+ remove_proc_entry (bo -> procname , net -> can .bcmproc_dir );
1510
+ #endif /* CONFIG_PROC_FS */
1511
+
1506
1512
list_for_each_entry_safe (op , next , & bo -> tx_ops , list )
1507
1513
bcm_remove_op (op );
1508
1514
@@ -1538,12 +1544,6 @@ static int bcm_release(struct socket *sock)
1538
1544
list_for_each_entry_safe (op , next , & bo -> rx_ops , list )
1539
1545
bcm_remove_op (op );
1540
1546
1541
- #if IS_ENABLED (CONFIG_PROC_FS )
1542
- /* remove procfs entry */
1543
- if (net -> can .bcmproc_dir && bo -> bcm_proc_read )
1544
- remove_proc_entry (bo -> procname , net -> can .bcmproc_dir );
1545
- #endif /* CONFIG_PROC_FS */
1546
-
1547
1547
/* remove device reference */
1548
1548
if (bo -> bound ) {
1549
1549
bo -> bound = 0 ;
You can’t perform that action at this time.
0 commit comments