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 @@ -1526,6 +1526,12 @@ static int bcm_release(struct socket *sock)
15261526
15271527 lock_sock (sk );
15281528
1529+ #if IS_ENABLED (CONFIG_PROC_FS )
1530+ /* remove procfs entry */
1531+ if (net -> can .bcmproc_dir && bo -> bcm_proc_read )
1532+ remove_proc_entry (bo -> procname , net -> can .bcmproc_dir );
1533+ #endif /* CONFIG_PROC_FS */
1534+
15291535 list_for_each_entry_safe (op , next , & bo -> tx_ops , list )
15301536 bcm_remove_op (op );
15311537
@@ -1561,12 +1567,6 @@ static int bcm_release(struct socket *sock)
15611567 list_for_each_entry_safe (op , next , & bo -> rx_ops , list )
15621568 bcm_remove_op (op );
15631569
1564- #if IS_ENABLED (CONFIG_PROC_FS )
1565- /* remove procfs entry */
1566- if (net -> can .bcmproc_dir && bo -> bcm_proc_read )
1567- remove_proc_entry (bo -> procname , net -> can .bcmproc_dir );
1568- #endif /* CONFIG_PROC_FS */
1569-
15701570 /* remove device reference */
15711571 if (bo -> bound ) {
15721572 bo -> bound = 0 ;
You can’t perform that action at this time.
0 commit comments