From: Alexey Dobriyan Date: Sun, 30 Oct 2005 23:03:11 +0000 (-0800) Subject: [PATCH] fs/attr.c: remove BUG() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b3099b48da23686d8378133b0264ee00385ee5fa;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [PATCH] fs/attr.c: remove BUG() Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/attr.c b/fs/attr.c index b1796fb9e524..67bcd9b14ea5 100644 --- a/fs/attr.c +++ b/fs/attr.c @@ -117,9 +117,6 @@ int notify_change(struct dentry * dentry, struct iattr * attr) struct timespec now; unsigned int ia_valid = attr->ia_valid; - if (!inode) - BUG(); - mode = inode->i_mode; now = current_fs_time(inode->i_sb);