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

use of uninitialized value #3

Open
OznOg opened this issue Apr 14, 2019 · 0 comments
Open

use of uninitialized value #3

OznOg opened this issue Apr 14, 2019 · 0 comments

Comments

@OznOg
Copy link

OznOg commented Apr 14, 2019

introduced in 37e0a0c

the value of retval is returned not initialized when case 2
in kernel/hypercalls.c line 504

int hyp_cpuctrl(void)
{
        unsigned long cp;
        unsigned long retval;

        deb_printf(DEB_CALL, "BEGIN\n");
        cp = (int) _context->regs.regs[0];
        switch (cp) {
        case 0:
                retval = _get_c0();
                break;
        case 1:
                retval = _get_c1();
                break;
        case 2:
                break;
        }
        deb_printf(DEB_HYP, "END: 0x%08x\n", retval);
        return retval;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant