Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL" am: 9fcabf739b am: 281fa200fb am: ae884d6af2
am: ea67d8d449
Change-Id: Iece20cae94ff7b8b93b801f37366bfc0a89d1c41
This commit is contained in:
commit
8a33b3a194
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ LIBLOG_HIDDEN struct android_log_transport_read logdLoggerRead = {
|
|||
|
||||
static int logdAvailable(log_id_t logId)
|
||||
{
|
||||
if (logId > LOG_ID_KERNEL) {
|
||||
if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) {
|
||||
return -EINVAL;
|
||||
}
|
||||
if (logId == LOG_ID_SECURITY) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue