]> Git Repo - u-boot.git/commit
spi: spi-mem: Check if exec_op function is set before calling it
authorBernhard Messerklinger <[email protected]>
Tue, 26 Mar 2019 09:01:24 +0000 (10:01 +0100)
committerJagan Teki <[email protected]>
Fri, 12 Apr 2019 05:47:39 +0000 (11:17 +0530)
commit567a3eb7956f98af4ed065499898c6d0ac6443c7
tree941cff256e121e275fd256f29a3275536f192690
parent3f3aef4b9dc88278f31567fe6f26095fd9477b1a
spi: spi-mem: Check if exec_op function is set before calling it

Add check if exec_op is set before calling it.
At the moment it is called unconditionally, which leads to a crash if it
is not set correctly.

Signed-off-by: Bernhard Messerklinger <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
drivers/spi/spi-mem.c
This page took 0.0328 seconds and 4 git commands to generate.