Konstantin Belousov 54f98c4dbf vn_open_vnode(): handle error when fp == NULL
If VOP_ADD_WRITECOUNT() or adv locking failed, so VOP_CLOSE() needs to
be called, we cannot use fp fo_close() when there is no fp.  This occurs
when e.g. kernel code directly calls vn_open() instead of the open(2)
syscall.

In this case, VOP_CLOSE() can be called directly, after possible lock
upgrade.

Reported by:	nvass@gmx.com
PR:	255119
Tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D29830
2021-04-21 18:06:51 +03:00
..
2020-02-26 16:22:28 +00:00
2021-01-02 19:57:58 -07:00
2020-10-05 15:54:19 +00:00
2020-11-19 02:50:48 +00:00
2021-04-18 11:14:17 -06:00
2021-04-13 17:42:21 -04:00
2021-04-18 11:14:17 -06:00
2020-12-04 18:56:44 +00:00
2021-04-18 11:19:15 -06:00
2021-04-12 11:42:21 -03:00
2021-04-18 11:14:17 -06:00
2021-04-13 17:42:21 -04:00
2020-11-05 15:08:56 +00:00
2018-10-12 00:32:45 +00:00
2020-11-09 00:34:23 +00:00
2020-08-13 20:48:14 +00:00
2021-04-02 15:41:51 +03:00
2019-02-20 09:38:19 +00:00
2020-12-01 16:06:31 +00:00
2021-04-07 14:33:02 -04:00
2020-01-12 23:52:16 +00:00
2021-04-18 11:14:17 -06:00
2021-04-18 11:14:17 -06:00
2020-08-27 05:11:15 +00:00
2021-04-15 12:48:24 +03:00
2021-04-13 17:42:20 -04:00
2021-04-18 11:19:15 -06:00
2021-02-21 00:43:05 +00:00
2021-04-18 11:19:15 -06:00