Unverified Commit c28ee72a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents e25d3df9 c1aa7aa1
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1506,6 +1506,12 @@ static int bcm_release(struct socket *sock)

	lock_sock(sk);

#if IS_ENABLED(CONFIG_PROC_FS)
	/* remove procfs entry */
	if (net->can.bcmproc_dir && bo->bcm_proc_read)
		remove_proc_entry(bo->procname, net->can.bcmproc_dir);
#endif /* CONFIG_PROC_FS */

	list_for_each_entry_safe(op, next, &bo->tx_ops, list)
		bcm_remove_op(op);

@@ -1541,12 +1547,6 @@ static int bcm_release(struct socket *sock)
	list_for_each_entry_safe(op, next, &bo->rx_ops, list)
		bcm_remove_op(op);

#if IS_ENABLED(CONFIG_PROC_FS)
	/* remove procfs entry */
	if (net->can.bcmproc_dir && bo->bcm_proc_read)
		remove_proc_entry(bo->procname, net->can.bcmproc_dir);
#endif /* CONFIG_PROC_FS */

	/* remove device reference */
	if (bo->bound) {
		bo->bound   = 0;