mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-11 11:51:46 +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>
|
#include <linux/irq_work.h>
|
||||||
|
|
||||||
void irq_work_tick(void)
|
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)
|
struct inode * new_inode_pseudo(struct super_block * sb)
|
||||||
{
|
{
|
||||||
const struct super_operations *ops = sb->s_op;
|
const struct super_operations *ops = sb->s_op;
|
||||||
struct inode *inode;
|
struct inode *inode;
|
||||||
|
|
||||||
if (ops->alloc_inode) {
|
if (ops->alloc_inode)
|
||||||
inode = ops->alloc_inode(sb);
|
inode = ops->alloc_inode(sb);
|
||||||
}
|
|
||||||
|
|
||||||
if (!inode)
|
if (!inode)
|
||||||
return (struct inode*)ERR_PTR(-ENOMEM);
|
return (struct inode*)ERR_PTR(-ENOMEM);
|
||||||
|
|
||||||
|
if (!inode->free_inode)
|
||||||
|
inode->free_inode = ops->free_inode;
|
||||||
|
|
||||||
return 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>
|
#include <linux/firmware.h>
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user