Stefan Wahren e125921585 staging: vchiq_dev: Avoid unnecessary alloc in vchiq_ioc_create_service
There is no need to allocate the user service in case there is a VCHIQ
connection required, but not available. So simply check the error conditions
before doing an expensive memory allocation.

Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/1642968143-19281-19-git-send-email-stefan.wahren@i2se.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-25 16:30:16 +01:00
..
2021-07-27 12:17:21 +02:00
2022-01-12 10:43:08 -08:00
2021-11-04 07:56:22 -07:00
2021-11-04 07:56:22 -07:00
2021-11-29 08:03:05 +01:00
2021-11-29 08:03:05 +01:00