um: vector: always reset vp->opened
authorJohannes Berg <johannes.berg@intel.com>
Wed, 3 Jul 2024 16:46:23 +0000 (18:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 4 Jul 2024 10:03:26 +0000 (12:03 +0200)
commit98ff534ec2cd02496c166614e6c1391d8e092e51
tree65037747d29d4cdd20dcac2b0809dbcb2ea41c58
parenta0470a9f699a847e519293db9e33a4dae169467d
um: vector: always reset vp->opened

If open fails, we have already set vp->opened, but it's
not reset so that any further attempts will just return
-ENXIO. Reset vp->opened even if close has nothing to do.

This helps e.g. with slirp4netns handling only a single
connection, you can then restart it and open the device
again.

Link: https://patch.msgid.link/20240703184622.df40c5c38461.Id4e20b48938c6019d99e6133227a34ac059db466@changeid
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/drivers/vector_kern.c