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)
15111511
15121512 lock_sock (sk );
15131513
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+
15141520 list_for_each_entry_safe (op , next , & bo -> tx_ops , list )
15151521 bcm_remove_op (op );
15161522
@@ -1546,12 +1552,6 @@ static int bcm_release(struct socket *sock)
15461552 list_for_each_entry_safe (op , next , & bo -> rx_ops , list )
15471553 bcm_remove_op (op );
15481554
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-
15551555 /* remove device reference */
15561556 if (bo -> bound ) {
15571557 bo -> bound = 0 ;
You can’t perform that action at this time.
0 commit comments