RTEMS | bsps/shared/flash: Add a JFFS2 flashdev driver (!319)

Kinsey Moore (@opticron) gitlab at rtems.org
Tue Nov 19 14:10:26 UTC 2024




Kinsey Moore commented on a discussion on bsps/shared/dev/flash/jffs2_flashdev.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/319#note_115240

 > +    return RTEMS_NO_MEMORY;
 > +  }
 > +  memset(mount_data, 0, sizeof(*mount_data));
 > +
 > +  instance = malloc(sizeof(*instance));
 > +  if (instance == NULL) {
 > +    free(mount_data);
 > +    fclose(file);
 > +    return RTEMS_NO_MEMORY;
 > +  }
 > +  memset(instance, 0, sizeof(*instance));
 > +
 > +  instance->handle = file;
 > +  instance->mount_data = mount_data;
 > +  mount_data->flash_control = &instance->super;
 > +  mount_data->compressor_control = NULL;

This has been added via the patch provided in the associated issue.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/319#note_115240
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241119/18625817/attachment-0001.htm>


More information about the bugs mailing list