Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142009564
D54673.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
692 B
Referenced Files
None
Subscribers
None
D54673.id.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_shmemfs.c b/sys/compat/linuxkpi/common/src/linux_shmemfs.c
--- a/sys/compat/linuxkpi/common/src/linux_shmemfs.c
+++ b/sys/compat/linuxkpi/common/src/linux_shmemfs.c
@@ -62,11 +62,10 @@
struct linux_file *
linux_shmem_file_setup(const char *name, loff_t size, unsigned long flags)
{
- struct fileobj {
+ struct {
struct linux_file file __aligned(sizeof(void *));
struct vnode vnode __aligned(sizeof(void *));
- };
- struct fileobj *fileobj;
+ } *fileobj;
struct linux_file *filp;
struct vnode *vp;
int error;
@@ -89,7 +88,7 @@
}
return (filp);
err_1:
- kfree(filp);
+ kfree(fileobj);
err_0:
return (ERR_PTR(error));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 15, 9:05 PM (10 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27636348
Default Alt Text
D54673.id.diff (692 B)
Attached To
Mode
D54673: linuxkpi: Clean up linux_shmem_file_setup() a bit
Attached
Detach File
Event Timeline
Log In to Comment