#2093 closed defect (fixed)

Node type not always defined in IMFS_mknod()

Reported by: Andreas Heinig Owned by: Sebastian Huber
Priority: normal Milestone: 4.11
Component: fs Version: 4.11
Severity: major Keywords:
Cc: sebastian.huber@… Blocked By:
Blocking:

Description

In some (rare) cases get_type_and_info_by_mode_and_dev() does not define the node type. It only calls IMFS_assert() if the type can't be determined. However, IMFS_assert() is defined as nothing when not building RTEMS with enabled DEBUG. This will maybe result in silent fails, depending on the stack content.

Issue fixed with attached patch.

Attachments (2)

imfs_mknod.patch (709 bytes) - added by Andreas Heinig on 02/26/13 at 13:11:45.
Fixed usage of possibly undefined 'type'
0001-IMFS-PR2093-Fix-warning.patch (1.0 KB) - added by Sebastian Huber on 02/27/13 at 08:30:32.
Warning fix

Download all attachments as: .zip

Change History (6)

Changed on 02/26/13 at 13:11:45 by Andreas Heinig

Attachment: imfs_mknod.patch added

Fixed usage of possibly undefined 'type'

comment:1 Changed on 02/27/13 at 08:08:36 by Sebastian Huber

Resolution: wontfix
Status: newclosed, sebastian.huber@embedded-brains.de

Changed on 02/27/13 at 08:30:32 by Sebastian Huber

Warning fix

comment:2 Changed on 02/27/13 at 08:30:32 by Sebastian Huber

attachments.isobsolete: 01
Owner: changed from Chris Johns to Sebastian Huber
Resolution: wontfix
Status: closedreopened

comment:3 Changed on 02/27/13 at 08:55:23 by Sebastian Huber

Resolution: fixed
Status: reopenedclosed

comment:4 Changed on 11/24/14 at 18:58:28 by Gedare Bloom

Version: HEAD4.11

Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11

Note: See TracTickets for help on using tickets.