|
@@ -699,7 +699,13 @@ static int
|
|
|
get_vbus_header_info(struct visorchannel *chan,
|
|
|
struct spar_vbus_headerinfo *hdr_info)
|
|
|
{
|
|
|
- if (!SPAR_VBUS_CHANNEL_OK_CLIENT(visorchannel_get_header(chan)))
|
|
|
+ if (!spar_check_channel_client(visorchannel_get_header(chan),
|
|
|
+ spar_vbus_channel_protocol_uuid,
|
|
|
+ "vbus",
|
|
|
+ sizeof
|
|
|
+ (struct spar_vbus_channel_protocol),
|
|
|
+ SPAR_VBUS_CHANNEL_PROTOCOL_VERSIONID,
|
|
|
+ SPAR_VBUS_CHANNEL_PROTOCOL_SIGNATURE))
|
|
|
return -EINVAL;
|
|
|
|
|
|
if (visorchannel_read(chan, sizeof(struct channel_header), hdr_info,
|