aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2016-07-16 08:34:33 +0200
committerFelipe Balbi <[email protected]>2016-08-11 15:09:46 +0300
commit3887db5c2b6531c59e9649a4293071b575d6eb3b (patch)
tree250d34c06e41516fcceb1fe8e851b64fb84d5fad /lib/mpi/mpi-bit.c
parentbd610c5aa9fcc9817d2629274a27aab81aa77cec (diff)
usb: gadget: composite: Fix return value in case of error
In 'composite_os_desc_req_prepare', if one of the memory allocations fail, 0 will be returned, which means success. We should return -ENOMEM instead. Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions