mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
pc/wifi: implement iput dummy
The 'iput()' function is called from '__sock_release()' when the sock object has no valid file object. The release function on the other hand is called when the supplicant closes a socket. Fixes #xxx.
This commit is contained in:
parent
fd8d439e39
commit
7c340b1cc9
@ -562,14 +562,6 @@ void iov_iter_revert(struct iov_iter * i,size_t unroll)
|
||||
}
|
||||
|
||||
|
||||
#include <linux/fs.h>
|
||||
|
||||
void iput(struct inode * inode)
|
||||
{
|
||||
lx_emul_trace_and_stop(__func__);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/irq_work.h>
|
||||
|
||||
void irq_work_tick(void)
|
||||
|
@ -118,20 +118,36 @@ struct vfsmount * kern_mount(struct file_system_type * type)
|
||||
|
||||
struct inode * new_inode_pseudo(struct super_block * sb)
|
||||
{
|
||||
const struct super_operations *ops = sb->s_op;
|
||||
struct inode *inode;
|
||||
const struct super_operations *ops = sb->s_op;
|
||||
struct inode *inode;
|
||||
|
||||
if (ops->alloc_inode) {
|
||||
inode = ops->alloc_inode(sb);
|
||||
}
|
||||
if (ops->alloc_inode)
|
||||
inode = ops->alloc_inode(sb);
|
||||
|
||||
if (!inode)
|
||||
return (struct inode*)ERR_PTR(-ENOMEM);
|
||||
|
||||
if (!inode->free_inode)
|
||||
inode->free_inode = ops->free_inode;
|
||||
|
||||
return inode;
|
||||
}
|
||||
|
||||
|
||||
void iput(struct inode * inode)
|
||||
{
|
||||
if (!inode)
|
||||
return;
|
||||
|
||||
if (atomic_read(&inode->i_count)
|
||||
&& !atomic_dec_and_test(&inode->i_count))
|
||||
return;
|
||||
|
||||
if (inode->free_inode)
|
||||
inode->free_inode(inode);
|
||||
}
|
||||
|
||||
|
||||
#include <linux/firmware.h>
|
||||
|
||||
#if 0
|
||||
|
Loading…
Reference in New Issue
Block a user