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 @@ -1503,6 +1503,12 @@ static int bcm_release(struct socket *sock)
15031503
15041504 lock_sock (sk );
15051505
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+
15061512 list_for_each_entry_safe (op , next , & bo -> tx_ops , list )
15071513 bcm_remove_op (op );
15081514
@@ -1538,12 +1544,6 @@ static int bcm_release(struct socket *sock)
15381544 list_for_each_entry_safe (op , next , & bo -> rx_ops , list )
15391545 bcm_remove_op (op );
15401546
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-
15471547 /* remove device reference */
15481548 if (bo -> bound ) {
15491549 bo -> bound = 0 ;
You can’t perform that action at this time.
0 commit comments