forked from luck/tmp_suning_uos_patched
usb: wusbcore: security: don't print on ENOMEM
All kmalloc-based functions print enough information on failures. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
90b613864d
commit
d919523f97
@ -374,10 +374,8 @@ int wusb_dev_4way_handshake(struct wusbhc *wusbhc, struct wusb_dev *wusb_dev,
|
||||
struct wusb_keydvt_out keydvt_out;
|
||||
|
||||
hs = kcalloc(3, sizeof(hs[0]), GFP_KERNEL);
|
||||
if (hs == NULL) {
|
||||
dev_err(dev, "can't allocate handshake data\n");
|
||||
if (!hs)
|
||||
goto error_kzalloc;
|
||||
}
|
||||
|
||||
/* We need to turn encryption before beginning the 4way
|
||||
* hshake (WUSB1.0[.3.2.2]) */
|
||||
|
Loading…
Reference in New Issue
Block a user