diff options
author | Peter Senna Tschudin <peter.senna@collabora.com> | 2016-01-15 18:41:34 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-24 21:04:54 -0800 |
commit | 0e781c2258ffb2a42bf44f62dea8662f38cbfd34 (patch) | |
tree | 67f6088cdbe27219683d4dcb04d7383f78e7e112 /arch/arm64 | |
parent | f40849b86862c00f24db10bc11fe2e972c029ec4 (diff) | |
download | talos-op-linux-0e781c2258ffb2a42bf44f62dea8662f38cbfd34.tar.gz talos-op-linux-0e781c2258ffb2a42bf44f62dea8662f38cbfd34.zip |
usb-misc: sisusbvga: fix error path
Remove a call to dev_err() that was reporting an unsuccesful call to
kmalloc(), as reporting memory allocation failures is redundant. Instead
of logging the error, clean up previously allocated resources and abort
the probe with -ENOMEM. Before this change sisusb->SiS_Pr could be
dereferenced even if null after failure of memory allocation.
Signed-off-by: Peter Senna Tschudin <peter.senna@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm64')
0 files changed, 0 insertions, 0 deletions