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:
Josef Söntgen 2022-06-30 11:37:11 +02:00 committed by Christian Helmuth
parent fd8d439e39
commit 7c340b1cc9
2 changed files with 21 additions and 13 deletions

View File

@ -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)

View File

@ -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