Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pktcdvd.c: Fix wrong return code when alloc_disk() fails. #577

Closed

Commits on Aug 6, 2018

  1. pktcdvd.c: Fix wrong return code when alloc_disk() fails.

    Function pkt_setup_dev() defined in drivers/block/pktcdvd.c calls alloc_disk(). However, it forgets to set the error return code when alloc_disk() fails. Instead, when alloc_disk() fails, it simply jumps to label 'out_mem' leaving the variable ret unchanged.
    Jason2031 committed Aug 6, 2018
    Configuration menu
    Copy the full SHA
    9ad530a View commit details
    Browse the repository at this point in the history