Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea67d8d4 authored by Evan Ralston's avatar Evan Ralston Committed by android-build-merger
Browse files

Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL" am: 9fcabf73 am: 281fa200

am: ae884d6a

Change-Id: I6c7a2be0da156cede075f35209033980f7deeda0
parents 7c65b4f1 ae884d6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {