Changeset acf4eb2 in rtems


Ignore:
Timestamp:
03/22/23 21:17:08 (2 months ago)
Author:
Kinsey Moore <kinsey.moore@…>
Branches:
master
Children:
ca1c4e70
Parents:
7163014
git-author:
Kinsey Moore <kinsey.moore@…> (03/22/23 21:17:08)
git-committer:
Joel Sherrill <joel@…> (03/23/23 15:33:52)
Message:

cpukit/jffs2: Avoid possible null deref

This was added with the writebuffer work and should have been protected
by the error check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/jffs2/src/fs-rtems.c

    r7163014 racf4eb2  
    13661366        }
    13671367
    1368         sb = &fs_info->sb;
    1369         c = JFFS2_SB_INFO(sb);
    1370         c->mtd = NULL;
    13711368
    13721369        if (err == 0) {
     1370                sb = &fs_info->sb;
     1371                c = JFFS2_SB_INFO(sb);
     1372                c->mtd = NULL;
    13731373                rtems_recursive_mutex_init(&sb->s_mutex, RTEMS_FILESYSTEM_TYPE_JFFS2);
    13741374        }
Note: See TracChangeset for help on using the changeset viewer.