Changeset 086290d in mainline


Ignore:
Timestamp:
2011-09-19T08:56:43Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
26e7d6d, a96a982, ac2c3f8f
Parents:
45a9cf4
Message:

locfs should not propagate EHANGUP to VFS.

  • locfs_read() and locfs_write() need to sanitize the error code returned by the device against EHANGUP or VFS will end up with a slammed phone to locfs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/locfs/locfs_ops.c

    r45a9cf4 r086290d  
    593593                sysarg_t rc;
    594594                async_wait_for(msg, &rc);
     595
     596                /* Do not propagate EHANGUP back to VFS. */
     597                if ((int) rc == EHANGUP)
     598                        rc = ENOTSUP;
    595599               
    596600                *rbytes = IPC_GET_ARG1(answer);
     
    655659                sysarg_t rc;
    656660                async_wait_for(msg, &rc);
     661
     662                /* Do not propagate EHANGUP back to VFS. */
     663                if ((int) rc == EHANGUP)
     664                        rc = ENOTSUP;
    657665               
    658666                *wbytes = IPC_GET_ARG1(answer);
Note: See TracChangeset for help on using the changeset viewer.