Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ipipe-arm64
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • xenomai
  • ipipe-arm64
  • Repository

Switch branch/tag
  • ipipe-arm64
  • fs
  • sysfs
  • file.c
Find file BlameHistoryPermalink
  • Ming Lei's avatar
    sysfs: fix sysfs_write_file for bin file · b9c06225
    Ming Lei authored Oct 23, 2013
    
    
    Before patch(sysfs: prepare path write for unified regular / bin
    file handling), when size of bin file is zero, writting still can
    continue, but this patch changes the behaviour.
    
    The worse thing is that firmware loader is broken by this patch,
    and user space application can't write to firmware bin file any more
    because both firmware loader and drivers can't know at advance how
    large the firmware file is and have to set its initialized size as
    zero.
    
    This patch fixes the problem and keeps behaviour of writting to bin
    as before.
    Reported-by: default avatarLothar Waßmann <LW@karo-electronics.de>
    Tested-by: default avatarLothar Waßmann <LW@karo-electronics.de>
    Acked-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    b9c06225

Replace file.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.

Imprint & Privacy Policy