Messages in this thread | | | Subject | Re: [PATCH v2] exfat: add missing brelse() calls on error paths | From | Markus Elfring <> | Date | Thu, 11 Jun 2020 10:00:55 +0200 |
| |
… > +++ b/fs/exfat/namei.c > @@ -1077,10 +1077,14 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, > > epold = exfat_get_dentry(sb, p_dir, oldentry + 1, &old_bh, > §or_old); > + if (!epold) > + return -EIO; …
Can it become helpful to annotate such null pointer checks for branch prediction? Would you like to indicate a likelihood in any way?
Regards, Markus
| |