search for: format_err_end

Displaying 1 result from an estimated 1 matches for "format_err_end".

2008 Dec 25
0
[PATCH 2/4] dom0 linux: Add "guestdev=" boot parameter.
...am[COMMAND_LINE_SIZE]; +LIST_HEAD(guestdev_list); + +/* Get hid and uid */ +static int pci_get_hid_uid(char *str, char *hid, char *uid) +{ + char *sp, *ep; + int len; + + sp = str; + ep = strchr(sp, '':''); + if (!ep) { + ep = strchr(sp, ''-''); + if (!ep) + goto format_err_end; + } + /* hid length */ + len = ep - sp; + if (len <= 0 || HID_LEN < len) + goto format_err_end; + + strncpy(hid, sp, len); + hid[len] = ''\0''; + + if (*ep == ''-'') { /* no uid */ + uid[0] = ''\0''; + return TRUE; + } + + sp = ep + 1; + ep...