]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
vme: vme_get_size potentially returning incorrect value on failure
authorMartyn Welch <martyn@welchs.me.uk>
Fri, 21 Oct 2016 16:36:19 +0000 (17:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Oct 2016 12:25:18 +0000 (08:25 -0400)
commit6ad37567b6b886121e250036e489d82cde5e5e94
treeadfaced0a77fe648869c1888ff63cddaff2eabbf
parentcfcc1456e4a2afdca85c7df3baa777f18da1d642
vme: vme_get_size potentially returning incorrect value on failure

The function vme_get_size returns the size of the window to the caller,
however it doesn't check the return value of the call to vme_master_get.

Return 0 on failure rather than anything else.

Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vme/vme.c