diff options
-rw-r--r-- | cpukit/libblock/src/media.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libblock/src/media.c b/cpukit/libblock/src/media.c index 8953b79e8b..ec29eea501 100644 --- a/cpukit/libblock/src/media.c +++ b/cpukit/libblock/src/media.c @@ -203,7 +203,9 @@ static media_item *get_media_item( if ( (disk_path == NULL || strcmp(disk_path, item->disk_path) == 0) - && (mount_path == NULL || strcmp(mount_path, item->mount_path) == 0) + && (mount_path == NULL + || (item->mount_path != NULL + && strcmp(mount_path, item->mount_path) == 0)) ) { return item; } |