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 @@ -1445,6 +1445,12 @@ static int bcm_release(struct socket *sock)
1445
1445
1446
1446
lock_sock (sk );
1447
1447
1448
+ #if IS_ENABLED (CONFIG_PROC_FS )
1449
+ /* remove procfs entry */
1450
+ if (proc_dir && bo -> bcm_proc_read )
1451
+ remove_proc_entry (bo -> procname , proc_dir );
1452
+ #endif /* CONFIG_PROC_FS */
1453
+
1448
1454
list_for_each_entry_safe (op , next , & bo -> tx_ops , list )
1449
1455
bcm_remove_op (op );
1450
1456
@@ -1476,12 +1482,6 @@ static int bcm_release(struct socket *sock)
1476
1482
bcm_remove_op (op );
1477
1483
}
1478
1484
1479
- #if IS_ENABLED (CONFIG_PROC_FS )
1480
- /* remove procfs entry */
1481
- if (proc_dir && bo -> bcm_proc_read )
1482
- remove_proc_entry (bo -> procname , proc_dir );
1483
- #endif /* CONFIG_PROC_FS */
1484
-
1485
1485
/* remove device reference */
1486
1486
if (bo -> bound ) {
1487
1487
bo -> bound = 0 ;
You can’t perform that action at this time.
0 commit comments