Pointer should be checked after returning from function or being
passed from other function. So add checker for this to avoid NULL
pointer dereference.
Change-Id: Ie86f47230b50433e08259ee5f6bbb52bedf749b1
CRs-Fixed: 2202957
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
Local variable in function should be initialized before using it.
Change-Id: I132033fa650cdacae3c8b2a98b8a593d159fe967
CRs-Fixed: 2202957
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
Add a bracket to fix the device instance for the subsystem_notif_virt
device.
Change-Id: Ib114a6d520aafbbcb0886dcf987d0509af80b636
Signed-off-by: Anant Goel <anantg@codeaurora.org>
If the CLK_SET_RATE_PARENT flag for the mmss_mdss_byte_intf_div_clk
divider is set re-calculation of dividers in DSI byte clock path takes
place which causes both the byte clock and byte interface clock to be
set to the same value.
Change-Id: Ia30c8070ec5c451a12f29e983089a7a2bbe6a8b3
Signed-off-by: Rashi Bindra <rbindra@codeaurora.org>
The SD card specification allows cards to error out a SWITCH command
where the requested function in a group is not supported. The spec
provides for a set of capabilities which indicate which functions are
supported.
In the case of the power limit, requesting an unsupported power level
via the SWITCH command fails, resulting in the power level remaining at
the power-on default of 0.72W, even though the host and card may support
higher powers levels.
This has been seen with SanDisk 8GB cards, which support the default
0.72W and 1.44W (200mA and 400mA) in combination with an iMX6 host,
supporting up to 2.88W (800mA). This currently causes us to try to set
a power limit function value of '3' (2.88W) which the card errors out
on, and thereby causes the power level to remain at 0.72W rather than
the desired 1.44W.
Arrange to limit the selected current limit by the capabilities reported
by the card to avoid the SWITCH command failing. Select the highest
current limit that the host and card combination support.
Change-Id: I7fbd035cdc606946e997fa4671ec5683acd3ed1b
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Fixes: a39ca6ae0a ("mmc: core: Simplify and fix
for SD switch processing")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Git-commit: d9812780a020bcec44565b5950b2a8b31afb5545
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Signed-off-by: Pradeep P V K <ppvk@codeaurora.org>
Header entry deleted but same entry pointer using in
routing table not updated. Added checks to confirm
header entry present or not before using it to avoid
null pointer dereference.
Change-Id: Id1d844c60b2dcb0cc7cf18352b78d62fe5a89347
Acked-by: Ashok Vuyyuru <avuyyuru@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Remove additional release fence offset to fix deadlock between
graphics and display when only two buffers are used.
Change-Id: Ifc94dae28484e13fae6cb9a7dfd19c1cb13c7c20
Signed-off-by: Camus Wong <camusw@codeaurora.org>
Check for debugfs ops buf size passed before reading
to eliminate the possibility of reading out of bounds.
Change-Id: I28fd60ce93256b6b0bad62b449092a891cc15463
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
The non-bmi targets do need to load firmware from the
driver and is loaded by other procedure.
Since, utf.bin file is not needed, this change skips parsing
and loading of the same.
Change-Id: Id7cc0b1cd75f813c1b6c762685d8806a30ba8295
Signed-off-by: Rakesh Pillai <pillair@codeaurora.org>
Fix repeated reg phy stream issue in loopback driver
which cause audio dsp calibration failure due to
rtac device could not remove successfully.
Change-Id: Ifa1b9cd579bc313d4addc00d48a8b4b636181220
Signed-off-by: Cong Tang <congt@codeaurora.org>
The guest VM uses this driver to communicate subsystem state related
notifications to a backend driver via the virtual device's registers.
Change-Id: I612fcb641c4d531c1d2c0fd18f44f7ebff040f2c
Signed-off-by: Anant Goel <anantg@codeaurora.org>
This reverts commit a8c85fc795.
Reverted because support for MPC5746C SPI-CAN is being
added back to the platform.
Change-Id: Ib14caf39a8cba9c6028abceb85adcd43df53ba06
Signed-off-by: Gustavo Solaira <gustavos@codeaurora.org>
fix cnf_buf.cmd is uninitialized in bw_profiling_get
Change-Id: I9638fe423e6768c66a85e80c0d5175b8a33c1901
Signed-off-by: Lei wang <leiwan@codeaurora.org>