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

Commit ae884d6a 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

Change-Id: I6b959b5d5617c3fac0b8583c7e4c64771c294c3c
parents c848a8de 281fa200
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) {