fix: A核codex修改
【背景】A核codex扫描告警消除。 【修改方案】 1. 将不可屏蔽告警进行修复。 【影响】 对现有的产品编译不会有影响。 re #I40B1S Signed-off-by: wangchen <253227059@qq.com>
This commit is contained in:
parent
390159f58a
commit
ec977a1c7e
|
@ -717,14 +717,17 @@ ssize_t VfsJffs2Readlink(struct Vnode *vnode, char *buffer, size_t bufLen)
|
||||||
int VfsJffs2Unlink(struct Vnode *parentVnode, struct Vnode *targetVnode, const char *path)
|
int VfsJffs2Unlink(struct Vnode *parentVnode, struct Vnode *targetVnode, const char *path)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
struct jffs2_inode *parentInode = (struct jffs2_inode *)parentVnode->data;
|
struct jffs2_inode *parentInode = NULL;
|
||||||
struct jffs2_inode *targetInode = (struct jffs2_inode *)targetVnode->data;
|
struct jffs2_inode *targetInode = NULL;
|
||||||
|
|
||||||
if (!parentVnode || !targetVnode) {
|
if (!parentVnode || !targetVnode) {
|
||||||
PRINTK("%s-%d parentVnode=%x, targetVnode=%x\n", __FUNCTION__, __LINE__, parentVnode, targetVnode);
|
PRINTK("%s-%d parentVnode=%x, targetVnode=%x\n", __FUNCTION__, __LINE__, parentVnode, targetVnode);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parentInode = (struct jffs2_inode *)parentVnode->data;
|
||||||
|
targetInode = (struct jffs2_inode *)targetVnode->data;
|
||||||
|
|
||||||
LOS_MuxLock(&g_jffs2FsLock, (uint32_t)JFFS2_WAITING_FOREVER);
|
LOS_MuxLock(&g_jffs2FsLock, (uint32_t)JFFS2_WAITING_FOREVER);
|
||||||
|
|
||||||
ret = jffs2_unlink(parentInode, targetInode, (const unsigned char *)path);
|
ret = jffs2_unlink(parentInode, targetInode, (const unsigned char *)path);
|
||||||
|
|
Loading…
Reference in New Issue