Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL"

am: 9fcabf739b

Change-Id: I6a07a22d727e2e5a886bf6c717d787273feb3226
This commit is contained in:
Evan Ralston 2017-02-10 01:19:55 +00:00 committed by android-build-merger
commit 281fa200fb
1 changed files with 1 additions and 1 deletions

View File

@ -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) {