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)
14451445
14461446 lock_sock (sk );
14471447
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+
14481454 list_for_each_entry_safe (op , next , & bo -> tx_ops , list )
14491455 bcm_remove_op (op );
14501456
@@ -1476,12 +1482,6 @@ static int bcm_release(struct socket *sock)
14761482 bcm_remove_op (op );
14771483 }
14781484
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-
14851485 /* remove device reference */
14861486 if (bo -> bound ) {
14871487 bo -> bound = 0 ;
You can’t perform that action at this time.
0 commit comments