Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F140685825
D4351.id11819.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
625 B
Referenced Files
None
Subscribers
None
D4351.id11819.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/file.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/file.h
+++ sys/compat/linuxkpi/common/include/linux/file.h
@@ -101,10 +101,11 @@
if (fget_unlocked(curthread->td_proc->p_fd, fd,
cap_rights_init(&rights), &file, NULL) != 0) {
- file = NULL;
+ filp->_file = NULL;
+ } else {
+ filp->_file = file;
+ finit(file, filp->f_mode, DTYPE_DEV, filp, &linuxfileops);
}
- filp->_file = file;
- finit(file, filp->f_mode, DTYPE_DEV, filp, &linuxfileops);
/* drop the extra reference */
fput(filp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 27, 9:25 PM (9 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27313247
Default Alt Text
D4351.id11819.diff (625 B)
Attached To
Mode
D4351: LINUXKPI: Prevent fd getting closed before installed
Attached
Detach File
Event Timeline
Log In to Comment