mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-30 08:19:09 +00:00
o Check we have a non-NULL pointer to a super block before dereference it.
PR: misc/103822 Submitted by: Dmitry Stefankov MFC after: 2 weeks
This commit is contained in:
parent
7567f38c8f
commit
c433b438f2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162831
@ -121,7 +121,7 @@ get_inode(fd,super,ino)
|
||||
if (ipbuf) {
|
||||
free(ipbuf);
|
||||
ipbuf = 0;
|
||||
if (super->fs_magic == FS_UFS2_MAGIC) {
|
||||
if (super != NULL && super->fs_magic == FS_UFS2_MAGIC) {
|
||||
free(cgp);
|
||||
cgp = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user